Game Development Reference
In-Depth Information
0.5 -0.5 0.5
-0.5 -0.5 0.5
-0.5 0.5 -0.5
0.5 0.5 -0.5
0.5 0.5 0.5
-0.5 0.5 0.5
BBOX 24
-0.5 -0.5 -0.5
0.5 0.5 0.5
POLS
64
FACE
40123
40451
41562
43267
40374
44765
PTAG
28
SURF
00
10
20
30
40
50
SURF
42
"Default"
""
COLR 14
0.78431 0.78431 0.78431
0
DIFF
6
1.0 0
As can be seen from the above, a layer contains chunks that describe
the data for the points (PNTS), bounding box (BBOX), polygons (POLS),
polygon tag information (PTAG) and surfaces (SURF). For a layer section
we will use the following function; this returns if it finds another layer, so
in this simple application only the first layer in a file will return any object
geometry. If you wish to extend this then you will need to create a list of
objects and have the overall document do the reading, creating new
objects in the object list as new layer chunks are encountered.
Search Nedrilad ::




Custom Search