Re: [info-performer] Intersection testing and transformation

Date view Thread view Subject view Author view

From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 09/20/2005 07:58:57


Harri.Mahonen++at++seamk.fi wrote:

>2. Transform the given intersection point with the given matrix (from local to world coordinates)
>
>
I'm not sure if this is it or not, but I seem to recall that the matrix
you get from PFQHIT_XFORM is the world-to-local matrix (not
local-to-world). Try inverting that matrix before transforming your
point with it, then apply the SCS and DCS transformations.

The other way you can do it is to use PFQHIT_PATH, and then walk up the
intersection path, accumulating the transformations until you get to
your desired node. Then invert that matrix and transform the point
with it.

Hope this helps,

-- 

--"J"

"I'm a castaway stranded in a desolate land, I can see the footprints in the virtual sand." --Neil Peart


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 20 2005 - 07:59:07 PDT