On Nov 1, 1:52 pm, "Drew Smathers" <[EMAIL PROTECTED]> wrote: > On Sat, Nov 1, 2008 at 2:20 PM, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote: > > > I want to get the point (actually line) that corresponds to the > > position of the mouse on the scee. Like a "what you see is what you > > get". I'm not sure whether I am able to describe it properly but think > > of it like 3d rts games. No matter what angle you are looking at the > > world from, when you click, the unit you "see" to be at the point of > > your mouse is selected. Is there a simple way to do this? > > There is not a simple way to do this, but there is a way (or rather many > ways): > > http://www.opengl.org/resources/faq/technical/selection.htm
Note that OpenGL's selection mode is deprecated, so you should probably use <a href="http://www.opengl.org/resources/faq/technical/ glu.htm#0070">http://www.opengl.org/resources/faq/technical/ glu.htm#0070</a> instead. > http://www.lighthouse3d.com/opengl/picking/http://djfroofy.livejournal.com/3924.htmlhttp://www.bitbucket.org/djfroofy/miru/src/30269ea36cb3/miru/utils.py > [ See function in above: select_object() at line 104 ] > > -- > \\\\\/\"/\\\\\\\\\\\ > \\\\/ // //\/\\\\\\\ > \\\/ \\// /\ \/\\\\ > \\/ /\/ / /\/ /\ \\\ > \/ / /\/ /\ /\\\ \\ > / /\\\ /\\\ \\\\\/\ > \/\\\\\/\\\\\/\\\\\\ > d.p.s --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
