SDL_GL VIRTUAL distance

I was playing around with SDL Opengl capabilities and saw something strange. There is a max distance for rendering poligons. Is it possible to change that distance? Or am I using to much world space?

Thanks in advance!

RDRio

p.s. sorry for the last post, pressed the wrong button. =)

I was playing around with SDL Opengl capabilities and saw something
strange. There is a max distance for rendering poligons. Is it
possible to change that distance? Or am I using to much world space?

This has nothing to do with SDL, except perhaps insofar as you specify
the resolution of the depth buffer, which the underlying OpenGL driver
then uses.

The subject of coordinate systems is a large one–I suggest you pick
up a good book on 3D graphics.

m.On Tue, Dec 26, 2000 at 10:51:10PM -0000, Ricardo Rio wrote:


Programmer “Ha ha.” “Ha ha.” "What are you laughing at?"
Loki Software "Just the horror of being alive."
http://lokigames.com/~briareos/ - Tony Millionaire

At 12:57 PM 27/12/2000 -0800, Michael Vance wrote:>On Tue, Dec 26, 2000 at 10:51:10PM -0000, Ricardo Rio wrote:

I was playing around with SDL Opengl capabilities and saw something
strange. There is a max distance for rendering poligons. Is it
possible to change that distance? Or am I using to much world space?

This has nothing to do with SDL, except perhaps insofar as you specify
the resolution of the depth buffer, which the underlying OpenGL driver
then uses.

Check your projection matrix. If you use gluPerspective, check what you’re
setting fnear and ffar to: objects closer to the camera than fnear, and
farther than ffar, will be clipped.

For more info, check the GL Super Bible or the Red Book.