Re: Picking Scaled Flight Format Models

New Message Reply Date view Thread view Subject view Author view

Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Tue, 4 Apr 1995 23:59:42 -0400 (EDT)


On Tue, 4 Apr 1995, Jim Helman wrote:

> > When they are scaled to appear larger it seems that the
> > picking intersection is still computed with the original
> > size. If I hit very close to the origin I can still select
> > the model.
>
> I just ran a test against 1.2, and picking under a DCS with
> uniform and nonuniform scales works for me. You need to be
> aware that the location (PFQHIT_POINT) of the hit is
> returned in object coordinates (i.e. unscaled). So if you
> want the result in scene coordinates, the location must be
> transformed (using PFQHIT_XFORM). However, this would not
> explain the absence of a hit.
>

I forgot what the original post was (if anything more than the above),
but make sure the bounding box/sphere is reset for the DCS. That is, do not
have the following:

   pfNodeBSphere(dcs, &sph, PFN_BMODE_STATIC);

You can make sure the node has a dynamic bounding sphere/box with:

   pfNodeBSphere(dcs, NULL, PFN_BMODE_DYNAMIC);

______________________________________________________________________________
           /\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."


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:51:10 PDT

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