Advertisement

data file question

Started by March 10, 2001 04:23 PM
0 comments, last by omegasyphon 23 years, 8 months ago
can anoyne give me an example on how the data file is layed out in tutorial 10?
Hello, the data file format is:

NUMPOLLIES 36 // max triangles in the file

// Floor 1 // just desc'' like in c ''//''
-3.0 0.0 -3.0 0.0 6.0 \
-3.0 0.0 3.0 0.0 0.0 ---> First triangle Vertex & tex'' coords
3.0 0.0 3.0 6.0 0.0 /

-3.0 0.0 -3.0 0.0 6.0 \
3.0 0.0 -3.0 6.0 6.0 ---> Second triangle Vertex & tex'' coords
3.0 0.0 3.0 6.0 0.0 /

LINE FORMAT:
(U) (V) // Texture coordinates
0.0 6.0

(X) (Y) (Z)
-3.0 0.0 -3.0 // Vertex Info

so if you know there is 3 vertices for each shape (triangle) so
you know that you need to use GL_TRIANGLES in the glBegin()!.

well, i hope this will be helpful for you!. bye, bye.
orenk2k

This topic is closed to new replies.

Advertisement