更動歷史 (5)
comment:2 16 年 前 由 編輯
Replying to leonid:
Could you give more info? Which app you use and logfile. Because it seems like picking over GLSelect mode works fine here.
App: not yet published ;).
OpenGL Debug output is (does this come from calls to glGetError(); ?!)
" OpenGL Warning: Packer wont pass SelectBuffer() OpenGL Warning: Try using the feedbackspu OpenGL Debug: stubSPUSafeTeardown "
The probably relevant part of the app code (works fine under native win and linux):
GLuint selectionBuffer[8192] = {0}; GLint hits, openGLviewport[4]; GLuint names, *ptr, minZ, *ptrName; ptrName = NULL; setOGLforVP(currentVP, state); glGetIntegerv(GL_VIEWPORT, openGLviewport); glSelectBuffer(8192, selectionBuffer);
glRenderMode(GL_SELECT);
glInitNames(); glPushName(0);
glMatrixMode(GL_PROJECTION); glLoadIdentity();
gluPickMatrix(x, y, (float)width, (float)width, openGLviewport);
/*renders here stuff for picking*/
hits = glRenderMode(GL_RENDER);
Could you give more info? Which app you use and logfile. Because it seems like picking over GLSelect mode works fine here.