gluPerspective()
I am having a lot of trouble with the gluPerspective() function. For some reason even though i can rotate an object nice and smoothly. If i even use the same variable to move it back it just disappears even after one unit. i guess the clipping plane or whatever is off. but i think i did it right. any ideas.
gluPerspective(45.0f,fAspect,1.0,425.0);
fAspect is window width/height
gluPerspective(45.0f,fAspect,1.0,425.0);
fAspect is window width/height
laziness,impatience, and hubris
I think I have answered this question already in another thread. But since I am here I will answer it. You are not translating the object far enough away from the clipping plane if you're trying to rotate it on X or Y. If you are talking about moving the or translating the object on x,y,z you need to increment the keyboard input by a smaller number. Start with that....
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Small error with glViewport and gluPerspective? | cjcaufield | 1 | 2,908 |
Sep 20, 2009 01:10 AM Last Post: DoG |
|
| picking glOrtho vs gluPerspective | rhiannon | 0 | 3,112 |
Jun 6, 2005 02:20 PM Last Post: rhiannon |
|
| gluPerspective() after glOrtho | tmgergo | 2 | 4,715 |
Nov 19, 2004 07:58 AM Last Post: ThemsAllTook |
|
| glOrtho versus gluPerspective and glPixels... | WhatMeWorry | 9 | 7,091 |
Aug 5, 2004 01:44 AM Last Post: NCarter |
|
| gluPerspective and it's #'s | LongJumper | 15 | 4,974 |
Oct 27, 2003 12:22 AM Last Post: LongJumper |
|

