Mongoose
09-21-2000, 09:36 AM
I can't figure out how to do something..
I want to render a skydome and when I do that, all of the triangles will be far away.. ( z values around - 10000 ) or so..
Here is my problem
My View matrix is built like this..
gluPerspective(45.0f,(GLfloat)srn.d[0]/(GLfloat)srn.d[1],1.0f,1000.0f);
Notice the 1.0f , 1000.0f
Now when i goto render my triangles... I turn off depth test and depth buffer writes...
I want to render my triangles but they will all bout of of the 1.0f - 1000.0f range from my view matrix...
How can I get around this????
I don't want to raise my viewmatrix to 10000.0f because then you get lots of jaggies with other polys that are close up.
Does anyone know what I'm talking about???
Please help me out with this bind..!
Thankx,
Mongoose
I want to render a skydome and when I do that, all of the triangles will be far away.. ( z values around - 10000 ) or so..
Here is my problem
My View matrix is built like this..
gluPerspective(45.0f,(GLfloat)srn.d[0]/(GLfloat)srn.d[1],1.0f,1000.0f);
Notice the 1.0f , 1000.0f
Now when i goto render my triangles... I turn off depth test and depth buffer writes...
I want to render my triangles but they will all bout of of the 1.0f - 1000.0f range from my view matrix...
How can I get around this????
I don't want to raise my viewmatrix to 10000.0f because then you get lots of jaggies with other polys that are close up.
Does anyone know what I'm talking about???
Please help me out with this bind..!
Thankx,
Mongoose