Inventor 2.0 Loader

New Message Reply Date view Thread view Subject view Author view

Darin C. Partridge (darin++at++paradox.idec.sdl.usu.edu)
Wed, 18 Jan 1995 09:50:06 -0700


I'm new with performer, but I'm trying to modify perfly to shoot a ray
strait down to find the first intersection with the current geometry.
I want to stay a constant height above the non-uniform ground terrain
(shouldn't that be easy?).
This is the code I was trying but the function pfuCollideGrnd always
returns a zero indicating there was no intersection. I know that
there is in fact an intersection. So on return the function returns
a zero, height is minus one, and pitch and roll are both zero.

pfuGetXformerCoord(ViewState->xformer, &ViewState->viewCoord);
pfuCollideGrnd( &ViewState->viewCoord, ViewState->sceneGroup, zpr );
ViewState->viewCoord.xyz[2]=zpr[0]+10;

What am I doing wrong?

Darin
(darin++at++chaos.idec.sdl.usu.edu)


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:52 PDT

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