Picking - – SetViewport to one pixel – It counts how many objects render to that pixel – Read back(glRenderMode(GL_RENDER – Identify

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 DocumentRight 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 DocumentRight 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 DocumentRight 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 DocumentRight 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

This note was uploaded on 11/30/2011 for the course CIS 4930 taught by Professor Staff during the Fall '08 term at University of Florida.

Page1 / 8

Picking - – SetViewport to one pixel – It counts how many objects render to that pixel – Read back(glRenderMode(GL_RENDER – Identify

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online