[PyOpenGL-Users] Noob question - Color pick selection - Buffer creation
Brought to you by:
mcfletch
From: Jorge <gus...@gm...> - 2016-03-10 11:46:54
|
Hi. I am really new to opengl. I am using pyqt tutorials and pyopengl to show objects like they say here: https://github.com/Werkov/PyQt4/blob/master/examples/opengl/hellogl.py However I have been looking for a way to pick 3d objects. I have seen that the way is creating an additional buffer that is not showed and select from this buffer based on a color assigned to each object. This is the theory however I can't manage to create or find a basic example. In the example I am using it is using GL.glCallList(self.object) to represent the object based on the list of instrucction programmed before. I now that in the def paintGL(self): I must repaint the buffer and the color pick selection buffer. My question is: Could you give me a clue how to create the secondary buffer? Kind regards and sorry for this basic question. Jorge |