PDA

View Full Version : Picking



Rong Yao
07-08-2003, 11:02 AM
In Selection Mode, if someone clicks on the overlap part of two objects, two hit records should be in the buffer, right? If so, is there anyway to know which object is in the front(relative to the viewer)?

dlswimmer
07-08-2003, 11:27 AM
check out NeHe's tutorial http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=32

Sourpotato
07-08-2003, 03:27 PM
Another redbook blind point,but Even the book does not tell,you can look close into the process_hit() function in the selection example <select.c> from the red book.


[This message has been edited by RunningRabbit (edited 07-08-2003).]

[This message has been edited by RunningRabbit (edited 07-08-2003).]

[This message has been edited by RunningRabbit (edited 07-08-2003).]

Rong Yao
07-25-2003, 01:20 PM
If two overlapped objects are Hierarchical parts of one another object, only one hit record, one Zmin, one Zmax but more than one names in the buffer, is there anyway to know which object is in the front(relative to the viewer)?