Re: collision detection

New Message Reply Date view Thread view Subject view Author view

Sean Halliday (halliday++at++BanffCentre.AB.CA)
Mon, 28 Nov 1994 11:51:34 -0700 (MST)


>
> Is there a way in Performer(1.2) to do volume to volume intersection.
> Currently, the only supported volume is a cylinder which does not truely
> represented my model. I have tried a group of line segments in pfSegsIsectNode
> to get a crude approximation.
> I would appreciate any help by anyone in showing how to do a true volume to
> volume intersection.
> Thanks.
>
> Hung Pham
>
        What you are doing is probably the best way. With that method you will
have to reverse the nodes to see if they really collide. Here's an example
with two boxes:

    ________
   / /|
  / Box1 / |
 / / |
/_______/ A_|___
| | /____/|
| | |___|/
| | /
| | /
|_______|/

Box1, face A is intersected by box2, but none of the line-segs of box1
intersect box2. The line segs of box2 interect face A. Everthing also
has to be in the same coord. system.

ex:

        i = my_intersect(A,B);
  if(!i) i = my_intersect(B,A);

Hope this helps. If would be nice if this was a Performer function.

-- 

Sean Halliday Computer Graphics Software Developer New Media Research, Banff Centre for the Arts. halliday++at++BanffCentre.AB.CA


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.