LWJGL Forum

Programming => OpenGL => Topic started by: amoeba on October 27, 2007, 16:52:11

Title: OpenGL Picking - can it be done in 1 pass instead of 2?
Post by: amoeba on October 27, 2007, 16:52:11
All the OpenGL picking tutorials I have seen involve creating a picking render pass when the mouse button is pressed.

It would be much better to do this in one pass, is it possible?
Title: Re: OpenGL Picking - can it be done in 1 pass instead of 2?
Post by: Fool Running on November 04, 2007, 21:35:40
From what I understand, the answer is no. However you can render low resolution models (or just boxes) during the picking pass to speed it up a lot.
The best way to do picking is to implement it on your own using bounding boxes on the models (so it doesn't require rendering at all).
Title: Re: OpenGL Picking - can it be done in 1 pass instead of 2?
Post by: amoeba on November 07, 2007, 09:36:09
Yes thats what I am doing, it just seems very wasteful when your already processing the full model anyway. Any idea if Direct3d has this same limitation?