View Full Version : glRender Gets No Hits on Linux

Doug Fulford
12-23-2010, 02:34 PM
I've been charged with getting an OpenGL app that displays on SGIs to display on Linux boxes (Redhat Linux-x86_64 with NVIDIA driver Version 169.12). For the most part, it's been a matter of making sure that RGB calls are made rather that color-map indexing calls. That part seems to be going fairly smoothly. However, I've been trying to get picking to work, without success. The code does a standard

GLuint pick_buffer[500];
GLint hits;

glSelectBuffer(sizeof(pick_buffer)/sizeof(GLint), pick_buffer);
hits = glRenderMode(GL_RENDER);

On the SGIs, hits is positive and on the Linux Boxes, hits is 0. I logged various stages in the code, and both appear to be doing the same thing up to the final glRenderMode call. Any ideas?

Dark Photon
12-23-2010, 06:34 PM
Never used selection mode. Are you checking for GL errors throughout?

Might see if one of these tutorial points out something you're not doing:

* http://gpwiki.org/index.php/OpenGL:Tutorials:Picking
* http://jerome.jouvie.free.fr/opengl-tutorials/Tutorial27.php
* http://www.unknownroad.com/rtfm/graphics/glselection.html
* http://web.engr.oregonstate.edu/~mjb/cs553/Handouts/Picking/picking.pdf