| Poster | : arunmur | | Posts | : 16 | | Country | : India | | City | : Bangalore |
| | | | Posted by arunmur on 12/11/2006 at 00:51:45
| | Hi,
Why are we using four parameters to create vertices. The first three are x, y ,z. What is the fourth one ? | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1388 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 12/11/2006 at 16:34:57
| | In the beginning, we are using 'pretransformed' coordinates. Normally, when using 3D coordinates, your graphics card needs to transforms them to 2D screen space. The result of this transformation are 4 numbers. The first 2 numbers are divided by the 4th, and the result are the 2D screen coordinates.
This 4th coordinate is called the homogeneous coordinate, and is a mathematical artefact arising from using 4x4 transformation matrices.
You can find a better explanation in the Homogeneous Matrices chapter of the Extra Reading section | |
|
|
| |
| |
| Poster | : eslam | | Posts | : 1 | | Country | : egypt | | City | : cairo |
| | | | Posted by eslam on 30/01/2007 at 11:49:46
| | | i wrote the code and everything is Ok but the triangle appears and flashes , why does it flash ?? | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1388 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 30/01/2007 at 13:45:39
| | | Have you completely copy-pasted the code? I think you're not yet overwriting the default window drawing order. | |
|
|