Torres Mario 678-5430 AMSRL-BE-M (mtorres++at++arl.mil)
Fri, 3 Mar 95 15:29:17 MST
Mario Torres
ARL
mtorres++at++arl.mil
>
>
> > ->
> > -> I want to get the value from viewpoint to terrain.In my application,
> > -> I tried to use pfuCollideGrnd(&(ViewState->xformer->coord),
> > -> &(ViewState->xformer->grndNode,zpr)
> > -> But I can't compile this code.
> >
> > I think you just want:
> > {
> > pfNode *grndNode = myTerrainNode; /* or just use your entire scene */
> > pfCoord coord;
> > pfVec3 zpr;
> > /* this is assuming you are using xformer - otherwise, set coord
> > * to your current position and HPR.
> > */
> > pfuGetXformerCoord(ViewState->xformer, coord);
> > pfuCollideGrnd(&coord, grndNode, zpr);
> > }
> > src.
> >
> >
> > --
> > -----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
> > Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
> > src++at++sgi.com (415) 390 - 1002 FAX: (415) 965 - 2658 MS 8U-590
> > -----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
> >
> >
> >
>
>
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:02 PDT