Re: Intersections

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Mon, 11 Aug 1997 12:15:56 -0700


On Aug 11, 12:44pm, John Sunderland wrote:
> Subject: Intersections
>
> [ Attachment (multipart/alternative): 5488 bytes ]
>-- End of excerpt from John Sunderland

John,

you seem to be intersecting with the vehicle graph although
it's not entirely clear.

HitNum = ModelsParentDCSNode->isect(&Isegset, Result);

If ModelsParentDCSNode is the vehicle DCS then this is wrong.
You need to transform the vectors *positions* through the matrix of
the vehicle DCS and intersect with the scene terrain node. Be sure
and include any matrices you may have above the terrain.

Use pfVec3::xformPt for this position transformation.

Cheers,
Angus
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:55:43 PDT

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