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 Brad Friedman

 Back
Reply:     1     2     3  

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>
<head>
 <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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 "opcode"
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:
<blockquote
cite="mid98D1772C9CB1A441928AEB0D161149ED074B25@(protected)"
type="cite">
 <meta http-equiv="Content-Type" content="text/html; ">
 <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)">
<!--[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:Compatibility>
  <w:BreakWrappedTables/>
  <w:SnapToGridInCell/>
  <w:WrapTextWithPunct/>
  <w:UseAsianBreakRules/>
 </w:Compatibility>
 <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
 <style>
<!--
/* Font Definitions */
@(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";}
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-compose;
  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;}
@(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]-->
 <div class="Section1">
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Hello,<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">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; <span style="">
&nbsp;</span>Any
help would be greatly appreciated.<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Thanks,<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">&nbsp;<o:p></o:p></span></font></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
<!--StartFragment -->
 <p class="MsoNormal"><span class="msoautosig0"><span align="left"><font
color="navy" face="Arial Narrow" size="3"><span
style="font-size: 12pt; font-family: &quot;Arial Narrow&quot;; color: navy;"
>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: 10pt;">www.janimation.com </span></font></a><br>
Sarcasm is just one more free service we offer.</font></span></span><span
style=""> </span><o:p></o:p></p>
 <p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
 </div>
</blockquote>
<br>
</body>
</html>