Problems with picking.

New Message Reply Date view Thread view Subject view Author view

Douglas Soo (stimpy++at++media.mit.edu)
Tue, 18 Jul 95 16:58:23 -0400


I am having trouble with getting picking to work properly. The basic
problem is that some objects are not being recognized, i.e. pfChanPick
returns 0 when I call it with the coordinates of the mouse when it is on
top of an object. I am able to pick some objects in the scene, but not
others. This is the call that I am using:

 pfChanPick(world->chan, PFTRAV_IS_PRIM,
                user->GetPickX(),
                user->GetPickY(), 0.0f, picklist)

where user->GetPickX() and user->GetPickY() are the normalized channel
screen coordinates, and picklist is defined as pfHit **picklist[10].

Earlier in the program I call pfNodePickSetup on the scene of the channel.

Is it possible that somehow it is not traversing the nodes correctly?
Any suggestions as to what could be causing this?

Thanks,

Douglas Soo
stimpy++at++mit.edu

Visible Language Workshop
MIT Media Lab


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

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