{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

picking - – SetViewport to one pixel – It counts how...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Picking
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
What is picking? Selecting an object on the screen What does this require? Get Mouse Location Compute what objects are rendered at the position
Background image of page 2
Example
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
How to do it http://www.opengl.org/resources/faq/technical/ http://gpwiki.org/index.php/OpenGL:Tutori als:Picking
Background image of page 4
Color Picking http://gpwiki.org/index.php/OpenGL_Selection_Using
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
GL_SELECTION http://gpwiki.org/index.php/OpenGL:Tutori als:Picking Render twice glRenderMode(GL_SELECT);
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: – SetViewport to one pixel – It counts how many objects render to that pixel – Read back # (glRenderMode(GL_RENDER) – Identify objects – use name stack What we’ve been doing gluUnProject • GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble* objX , GLdouble* objY , GLdouble* objZ )...
View Full Document

{[ snackBarMessage ]}