Picking

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)?

check out NeHe’s tutorial http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=32

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).]

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)?