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,
Victor
Hi Victor,
Probably that is the problem… Wich z clipping values are you using?
Hi,
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 ?
BR,
Victor
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 !
Makinis.
It looks like pifall #3 :
http://www.opengl.org/resources/features/KilgardTechniques/oglpitfall/
Be sure to apply rotations and translations to modelview matrix, not projection matrix.