openg gl selection , problem with fullscreen quad

Started by
2 comments, last by szecs 14 years, 7 months ago
Hello, in my app i use glRenderMode and gluPickMatrix for selection objects. That works fine so far. But when I render my scene into a texture and draw a full screenquad where i render the texture then the picking doesnt work any longer. I draw intot he texture because of some shader effects. So the final is drawn on a fullscreen quad. Is there something i can do to solve this problem ? best regards, c-mos
Advertisement
You don't need to do shading when selecting.
So when selecting, draw everything, just like you did when not using shaders (do not render to texture), otherwise, use the shader.
Do you need the selection to work all the time, or just when an event (for example keypress) occurs?
Hi,
actually I need selection online by event. For example when i click
at a plane that i'd like to move. so i should fetch the mouse butto event.
when clicking i render without textures and without any shaders.

but what, if i want to hold down i.e the left mouse button and move the mouse
to move an object.

regards,
c-mos
If you want to move the object, you don't have to use selection, because you know, what the selected object is. So you could do what I said.
Or if you want to get the selection work all the time:
render for selection, than render again for shading.
Selection does not draw, so I don't really understand your problem, try to specify it better with some code, or pseudocode.

This topic is closed to new replies.

Advertisement