Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
line intersection call?

line intersection call?

2005-03-21       - By lyn Caudle

 Back
Reply:     1     2     3  

Hey Brad Thanks
we will look in this direction.


Lyn Caudle
Visual Effects Swiss Army Knife
JANIMATION INC.
www.janimation.com <http://www.janimation.com/>
Sarcasm is just one more free service we offer.
-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf
Of Brad Friedman
Sent: Monday, March 21, 2005 2:49 PM
To: XSI@(protected)
Subject: Re: line intersection call?

off hand I know ODE is capable of this kind of collision detection.  ODE
is the base of the rigid body dynamics in XSI.  And ODE has a dll in the
/bin directory of XSI.  But I have no idea if you could actually link to
it and call it directly.  I also noticed a DLL called "opcode" though
I'm not sure if its the collision detection library by the same name
(though I suspect it is).  Either way I don't think these things are
exposed to the SDK normally (I could be wrong on that).  But you might
be able to get at them through C and C++ anyway (C for ODE, C++ for
opcode).

Don' t know if that helps.  Probably doesn't :)

btw, if you do go this route, my recollection is that ODE doesn't do ray
to polygon soup collision on its own.  Though it does do ray to plane.
You'll need opcode to handle the polygon soup most likely.

-brad

lyn Caudle wrote:
Hello,

I've seen a few samples via scripted operators with static inputs, but
is there any built in methods in the SDK for line/plane intersection?
What I really need is a call that given a ray (position and dir vector)
and an object will return a surface position and possibly normal if the
ray intersects the object, other wise null/false, etc...  Any help would
be greatly appreciated.

Thanks,


Lyn Caudle
Visual Effects Swiss Army Knife
JANIMATION INC.
www.janimation.com <http://www.janimation.com/>
Sarcasm is just one more free service we offer.



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1=
"urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC
-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@(protected)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
 <o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:SpellingState>Clean</w:SpellingState>
 <w:GrammarState>Clean</w:GrammarState>
 <w:DocumentKind>DocumentEmail</w:DocumentKind>
 <w:EnvelopeVis/>
 <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
  {font-family:Tahoma;
  panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;
  mso-font-charset:0;
  mso-generic-font-family:swiss;
  mso-font-pitch:variable;
  mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@(protected)
  {font-family:"Arial Narrow";
  panose-1 (See http://ose-1.ora-code.com):2 11 5 6 2 2 2 3 2 4;
  mso-font-charset:0;
  mso-generic-font-family:swiss;
  mso-font-pitch:variable;
  mso-font-signature:647 0 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
  {mso-style-parent:"";
  margin:0in;
  margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:12.0pt;
  font-family:"Times New Roman";
  mso-fareast-font-family:"Times New Roman";
  color:black;}
a:link, span.MsoHyperlink
  {color:blue;
  text-decoration:underline;
  text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
  {color:purple;
  text-decoration:underline;
  text-underline:single;}
span.EmailStyle17
  {mso-style-type:personal;
  mso-style-noshow:yes;
  mso-ansi-font-size:10.0pt;
  mso-bidi-font-size:10.0pt;
  font-family:Arial;
  mso-ascii-font-family:Arial;
  mso-hansi-font-family:Arial;
  mso-bidi-font-family:Arial;
  color:windowtext;}
span.msoautosig0
  {mso-style-name:msoautosig;}
span.EmailStyle19
  {mso-style-type:personal-reply;
  mso-style-noshow:yes;
  mso-ansi-font-size:10.0pt;
  mso-bidi-font-size:10.0pt;
  font-family:Arial;
  mso-ascii-font-family:Arial;
  mso-hansi-font-family:Arial;
  mso-bidi-font-family:Arial;
  color:navy;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;
  mso-header-margin:.5in;
  mso-footer-margin:.5in;
  mso-paper-source:0;}
div.Section1
  {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
  {mso-style-name:"Table Normal";
  mso-tstyle-rowband-size:0;
  mso-tstyle-colband-size:0;
  mso-style-noshow:yes;
  mso-style-parent:"";
  mso-padding-alt:0in 5.4pt 0in 5.4pt;
  mso-para-margin:0in;
  mso-para-margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:10.0pt;
  font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
 <o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hey Brad Thanks <o:p></o:p></span></font><
/p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>we will look in this direction.<o:p></o:p>
</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;mso-no-proof:yes'>&nbsp;<o:p></o:p></span></font></p>

<!--StartFragment -->

<p class=MsoNormal><span class=msoautosig0><span align=left><font size=3
color=navy face="Arial Narrow"><span style='font-size:12.0pt;font-family:"Arial
Narrow";
color:navy;mso-no-proof:yes'>Lyn </span>Caudle<br>
Visual Effects Swiss Army Knife<br>
JANIMATION INC. <br>
<a href="http://www.janimation.com/"><font size=2><span style='font-size:10.0pt;
mso-bidi-font-family:Arial'>www.janimation.com </span></font></a><br>
Sarcasm is just one more free service we offer.</span></font></span><span
style='mso-no-proof:yes'> </span><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>
-- --Original
Message-- --<br>
<b><span style='font-weight:bold'>From:</span></b> owner-xsi@(protected)
[mailto:owner-xsi@(protected)] <b><span style='font-weight:bold'>On Behalf Of
</span></b>Brad Friedman<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, March 21, 2005 2:49
PM<br>
<b><span style='font-weight:bold'>To:</span></b> </span></font><st1:PersonName>
<font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family
:Tahoma;
color:windowtext'>XSI</span></font></st1:PersonName><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>
@(protected)<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: line intersection
call?</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span><
/font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>off hand I know ODE is
capable of this kind of collision detection.&nbsp; ODE is the base of the rigid
body dynamics in XSI.&nbsp; And ODE has a dll in the /bin directory of
XSI.&nbsp; But I have no idea if you could actually link to it and call it
directly.&nbsp; I also noticed a DLL called &quot;opcode&quot; though I'm not
sure if its the collision detection library by the same name (though I suspect
it is).&nbsp; Either way I don't think these things are exposed to the SDK
normally (I could be wrong on that).&nbsp; But you might be able to get at them
through C and C++ anyway (C for ODE, C++ for opcode).<br>
<br>
Don' t know if that helps.&nbsp; Probably doesn't :)<br>
<br>
btw, if you do go this route, my recollection is that ODE doesn't do ray to
polygon soup collision on its own.&nbsp; Though it does do ray to plane.&nbsp;
You'll need opcode to handle the polygon soup most likely.<br>
<br>
-brad<br>
<br>
lyn Caudle wrote: <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><!--[if gte mso 9]><xml>
<u1:OfficeDocumentSettings>
 <u1:DoNotRelyOnCSS/>
</u1:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u2:WordDocument>
 <u2:SpellingState>Clean</u2:SpellingState>
 <u2:GrammarState>Clean</u2:GrammarState>
 <u2:DocumentKind>DocumentEmail</u2:DocumentKind>
 <u2:EnvelopeVis/>
 <u2:Compatibility>
  <u2:BreakWrappedTables/>
  <u2:SnapToGridInCell/>
  <u2:WrapTextWithPunct/>
  <u2:UseAsianBreakRules/>
 </u2:Compatibility>
 <u2:BrowserLevel>MicrosoftInternetExplorer4</u2:BrowserLevel>
</u2:WordDocument>
</xml><![endif]-->Hello,<u3:p></u3:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u3:p>&nbsp;</u3:p><o:p><
/o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>I&#8217;ve seen a few
samples via scripted operators with static inputs, but is there any built in
methods in the SDK for line/plane intersection? What I really need is a call
that given a ray (position and dir vector) and an object will return a surface
position and possibly normal if the ray intersects the object, other wise
null/false, etc&#8230; &nbsp;Any help would be greatly appreciated.<u3:p></u3:p
><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u3:p>&nbsp;</u3:p><o:p><
/o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Thanks,<u3:p></u3:p><o:p>
</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<u3:p></u3:p><o:p><
/o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u3:p>&nbsp;</u3:p><o:p><
/o:p></span></font></p>

<!--StartFragment -->

<p class=MsoNormal style='margin-left:.5in'><span class=msoautosig0><span align
=left><font
size=3 color=navy face="Arial Narrow"><span style='font-size:12.0pt;font-family:
"Arial Narrow";color:navy'>Lyn Caudle<br>
Visual Effects Swiss Army Knife<br>
JANIMATION INC. <br>
<a href="http://www.janimation.com/"><font size=2><span style='font-size:10.0pt
'>www.janimation.com
</span></font></a><br>
Sarcasm is just one more free service we offer.</span></span></font></span> <o
:p></o:p></p>

<u3:p></u3:p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><u3:p>&nbsp;</u3:p><o:p><
/o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span><
/font></p>

</div>

</body>

</html>