V-man
02-14-2003, 10:44 PM
I was experimenting a little with z-fighting.
I rendering a couple of large triangles that are coplanar and very close to each other, to observe the z-fighting.
I also wanted to compare the result of gluProject and also my own version of gluProject.
I noticed that there is a difference in the z-fighting pattern between the software method and the hardware, which indicates that there is a difference between the z values.
From what I can see on screen, all pixels fall into place correctly (I switch between software transform and GL at the press of a button), but it could be that the x and y values are also not identical to what the hardware is producing. The hardware always operates with 32 bit floats, right?
Or it could be an error on my part.
When in software mode, I set modelview to identity.
The projection, I setup like this
glOrtho(0.0, Width, 0.0, Height, -1.0, 1.0);
I'm sure it's a dumb error on my part.
I rendering a couple of large triangles that are coplanar and very close to each other, to observe the z-fighting.
I also wanted to compare the result of gluProject and also my own version of gluProject.
I noticed that there is a difference in the z-fighting pattern between the software method and the hardware, which indicates that there is a difference between the z values.
From what I can see on screen, all pixels fall into place correctly (I switch between software transform and GL at the press of a button), but it could be that the x and y values are also not identical to what the hardware is producing. The hardware always operates with 32 bit floats, right?
Or it could be an error on my part.
When in software mode, I set modelview to identity.
The projection, I setup like this
glOrtho(0.0, Width, 0.0, Height, -1.0, 1.0);
I'm sure it's a dumb error on my part.