Re: getting world coordinates from a pfHit..

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/23/2001 20:10:04


You have to take this point and transform it through the querry matrix
to get world coordinates.

Cheers,Angus.

Uwe Wössner wrote:
>
> Hi Bryan,
>
> try this:
>
> pfMatrix xform;
> pfVec3 hitPoint
> hits[0][0]->query(PFQHIT_XFORM, &xform);
> hitPoint.fullXformPt(result.point, xform);
>
> (see man pfHit for details)
>
> Uwe
> Bryan Housel wrote:
>
> > If you have a pfHit containing an intersection, you can get the local
> > point of intersection by querying the pfHit with the PFQHIT_POINT
> > flag... But what if I want the point in world coordinates?.. I know I
> > can use PFQHIT_PATH to get the path to the object and, using the SCS and
> > DCS nodes, determine where that point would be, but is this the best
> > way?
> >
> > I looked at pfGeoSet.h, and the transformation to world coordinates is
> > actually stored in the pfHit, but as protected data.. Shouldn't there be
> > a way to get at it?
> >
> > Thanks,
> > Bryan
> >
> >
> >
>
> --
> \\\|/// *Rechenzentrum Universitaet Stuttgart*
> _I_ ( o o ) *Visualisierung* _I_
> (_++at++_)----oo0O--(_)--O0oo----------------------------------------(_++at++_)
> | | Uwe Woessner woessner++at++rus.uni-stuttgart.de | |
> | | .ooo0 http://www.hlrs.de/people/woessner/ | |
> |_| ( ) Oooo. Phone: +49-711-685-5790 |_|
> (_++at++_)---------\ (---( )---------------------------------------(_++at++_)
> I \_) ) / I
> (_/
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 20:05:40 PDT

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