LWJGL
May 22, 2012, 02:58:50 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: OpenGL Picking - can it be done in 1 pass instead of 2?  (Read 2367 times)
amoeba
Regular nerd
**
Posts: 56


« on: October 27, 2007, 09: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?
Logged
Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #1 on: November 04, 2007, 13: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).
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
amoeba
Regular nerd
**
Posts: 56


« Reply #2 on: November 07, 2007, 01: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?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!