Questions tagged [z-buffer]
23 questions
6
votes
4 answers
How will the z-buffers have the same values even if polygons are sent in different order?
I know when we use Z-buffer to eliminate the hidden faces, the polygons can be in any order. But my teacher said that this does not mean that two images generated by sending polygons in different orders will have identical values in their z-buffers…
zfb
- 145
- 4
2
votes
1 answer
How to implement Z-buffering?
I understand the theory behind z buffering - that I have to check for each pixel if its depth value is less than the one on z buffer or not, if yes then draw else not - but I don't understand how would I actually get the z value of each pixel ?
At…
3D clipping.
- 43
- 5
0
votes
0 answers
Data type for coordinates
I am trying optimize routines for drawing primitive shapes for my custom 3D renderer.
What is the best data type for representing a coordinate in 3D space? I thought that integer would be the best choice since calculations involving integer are…
Jimmy Yang
- 167
- 8