Re: [Plib-users] Selecting with mouse
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-10-01 00:04:10
|
David Megginson wrote: > Steve Baker writes: > > > Whilst I agree that this is useful - for selection, it's better to use > > the OpenGL mechanism because it allows you to select within a rubber-banded > > region - and it stands a good chance of being hardware accellerated. > > How would you map from the OpenGL hits back to the scene graph, > without doing a depth-first search of the whole thing? My recollection of how it worked with PPE is that I built a table of OpenGL "name" tags versus SSG node addresses while descending the scene graph for cull/draw and then when I retrieve the name tags from the OpenGL pick function, it's a simple lookup table to get directly to the SSG node. What vastly complicated PPE was that we needed to be able to pick each vertex and each edge. I don't recall how that was done. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |