ctboyle / rubiks-cube-challenge

Automatically exported from code.google.com/p/rubiks-cube-challenge
0 stars 0 forks source link

Depth Buffer Problem #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Spinning the cublets around.
2. Usually by a 180-deg turn, the issue can be viewed.

What is the expected output? What do you see instead?
The incorrect cubes are rendered in a scene are visible and causes the
cubes that need to be displayed to be hidden.

Original issue reported on code.google.com by ctbo...@gmail.com on 20 Sep 2007 at 8:47

GoogleCodeExporter commented 9 years ago
This was fixed in revision 96, the same one when all of the state management 
went in.

Problem was that for the camera's view port, minDepth and maxDepth were being 
set to 
the near plane and farplane values, which is not appropriate. They are to 
represent 
the min and max values in the depth buffer now appropriately set 0.0f and 1.0f 
respectivley. I factored out near and far planes as properties.

It took about 3 hrs to fix.

Original comment by cwloc...@gmail.com on 21 Sep 2007 at 3:54