PDA

View Full Version : Depth problem.



ThinIce
03-20-2002, 08:16 PM
Hello,
I am working on a 3d enviroment scene, and I am having depth problems. IE, I move the view back, and the scene seems to "disapear" into thin air. Like I move backn, and out of the scene, and the scene disapears, there is no trace of it. I need help. I'm using Nehe's window system, everything else I drew. But I don't know whats wrong, plz help.

john
03-20-2002, 08:38 PM
try moving the far plane further away

cheers,
John

MPech
03-21-2002, 01:51 AM
Did you check your FOG settings ?
try disable it.

ThinIce
03-21-2002, 03:19 PM
Nothing with fog. I know that at least. About the far plane though, what do you mean by that? could you plase name the function I could find/use to fix this? I am very greatful for anyhelp.

chxfryer
03-21-2002, 03:56 PM
gluPerspective (fov, aspect ratio, near clip plane, far clip plane);

fov = field of view (what ever looks good) usually 60 to 90;

aspect ratio = screen width/screen height

near/far clip planes = inclusive depths to view (near must be greater than 0.0)