3 ms·
The triangles are in 3D space. Part of what the cards do is project them into 2D space. See pp. 18-20 of the Glide reference: https://citeseerx.ist.psu.edu/view
by rayiner 4y ago
The triangles are in 3D space. Part of what the cards do is project them into 2D space. See pp. 18-20 of the Glide reference: https://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=183AE8CEA600909EC4D1015607CDDB8A?doi=10.1.1.76.9506&rep=rep1&type=pdf https://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=18...
- iforgotpassword 4y agoIt explicitly states that vertices are given as (x, y). Voodoo cards did not do projection in hardware.
- rayiner 4y agoThe GrVertex structure has z and w components too. But it’s a fair point that the x and y is specified in screen space, not world space. I had forgotten that. But the hardware does depth buffering based on the z component, so it’s still 3D.
- iforgotpassword 4y agoYeah, that's a nice "hack" the hardware offered. You can still shove in the depth after having done the screen projection so you don't need to worry about the order in which you draw the triangles. So maybe 2.5D? :-)