PDA

View Full Version : Display 3D-Object



Irena
02-05-2010, 10:28 AM
Hi,
I have 3D object presented by its surfaces,Each surface is the polygon with n vertexes.
For every vertex 3 coordinates are given :(x,y,z),when -1<=x,y,z<=1
I need to draw the object...How can I do it,using perspective projection

Thank you in advance for the answers

ZbuffeR
02-05-2010, 10:46 AM
First do a tutorial about "First triangle", then build on that :
http://nehe.gamedev.net/lesson.asp?index=01

You have to know that even if polygons exists in OpenGL 2, they must be convex or strange artifacts can appear.

Irena
02-05-2010, 11:09 AM
I did all tutorials in the link above....
---------
The question was how to build perspective projection
And what is reccomened in order to deal with hidden surfaces....
------------

ZbuffeR
02-05-2010, 12:25 PM
Then go for next page :)
http://nehe.gamedev.net/lesson.asp?index=02
You don't need the texturing part, but there is perspective projection and hidden surface removal (through depth testing and the zbuffer).