Re: [PyOpenGL-Users] Need help about Picking
Brought to you by:
mcfletch
From: Ian M. <geo...@gm...> - 2010-05-25 23:07:29
|
On Mon, May 24, 2010 at 7:48 AM, Marco Avellino < mar...@ex...> wrote: > Hi, I followed a lot of tutorials about picking and I decided to use the > Selection Buffer. > I've never used it, but it looks interesting. > hits = glRenderMode(GL_RENDER) > > for record in hits: > > *min_depth*, max_depth, names = record > In context would be more helpful. For example, did you use glRenderMode(GL_SELECT) and do drawing stuff before this? Could we see your actual source file? > and I tried to obtain the lower value of “min_depth“ (= “the nearest > object”) but the result is no correct: the reason is that all my returned > values of *min_depth* are identical. > ...telling me that nothing is being written to this buffer. Which could mean many things--it's not configured correctly, you're not drawing anything, you don't have a graphics card, etc. Could we see the actual code? Thanks, Ian |