View Full Version : Configuring camera

Victor Hugo
05-21-2009, 04:34 AM
Hi All,

I'm trying to configure my opengl camera in order to reach a user experience like I was sitting in car driving through the city.

However when I reach 60 (pitch) of elevation the roads with z = 0 dissapear and I only see the 3D building.

This have to do we far and near planes clipping ?

Thanks you all,


05-21-2009, 04:47 AM
Hi Victor,

Probably that is the problem... Wich z clipping values are you using?

Victor Hugo
05-21-2009, 05:07 AM

I'm using as near plane 1.0 and far plane is dynamic depending the elevation but it's never bigger than 500.

Just miss the z clipping , what it is ?



05-21-2009, 06:25 AM
The clipping is what defines what part of the world you are going to see...

Try to decrease a bit the near plane, although that's not a good thing to do, but try it...

If it doesn't work I don't know what else you can do :o

Keep in mind that zNear should never be <=0.0 !


05-21-2009, 10:57 AM
It looks like pifall #3 :

Be sure to apply rotations and translations to modelview matrix, not projection matrix.