Hello Guest

OpenGL Picking - can it be done in 1 pass instead of 2?

  • 2 Replies
  • 6060 Views
OpenGL Picking - can it be done in 1 pass instead of 2?
« 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?

Re: OpenGL Picking - can it be done in 1 pass instead of 2?
« Reply #1 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).
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Re: OpenGL Picking - can it be done in 1 pass instead of 2?
« Reply #2 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?