picking glOrtho vs gluPerspective
Hi everyone,
Recently I decided to have the option to switch to a glOrtho when viewing a model, from gluPerspective, when I make this switch my picking code does weird things... It still picks and processes hits but they are off, they don't line up at all. I'm a noob so it's probably something simple. I just replace the gluPerspective calls with similar ones to glOrtho, both in the real viewing and in the picking view. It works fine in gluPerspective btw. Any ideas?
Recently I decided to have the option to switch to a glOrtho when viewing a model, from gluPerspective, when I make this switch my picking code does weird things... It still picks and processes hits but they are off, they don't line up at all. I'm a noob so it's probably something simple. I just replace the gluPerspective calls with similar ones to glOrtho, both in the real viewing and in the picking view. It works fine in gluPerspective btw. Any ideas?
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| How do I do Color Picking? | dockode | 2 | 4,117 |
Sep 24, 2011 08:02 PM Last Post: dockode |
|
| Issues with picking | FFaqui | 0 | 1,894 |
Nov 21, 2009 04:37 PM Last Post: FFaqui |
|
| Small error with glViewport and gluPerspective? | cjcaufield | 1 | 2,870 |
Sep 20, 2009 01:10 AM Last Post: DoG |
|
| Opengl picking problem (zip file) | papillon68 | 1 | 3,737 |
Mar 1, 2009 08:49 PM Last Post: chronus |
|
| Picking and selection... | chalamov33 | 2 | 2,977 |
Mar 31, 2008 02:08 PM Last Post: wyrmmage |
|

