I'll give you an obj example of how poly's work
first off, poly's are a certain number of points that make up a face...
one point will have 3 indexes ( vert/normal/UV )
now onto the types of poly's (going by number of points)
1 = point
2 = line
3 = triangle
4 = square (quad)
5> = multi-point polygon
Knew that
note: obj files don't use advanced polygon techniques such as strips or fans
so here's how an obj file with would look like:
# 8 verts
v 0.0 0.0 0.0
v 1.0 0.0 0.0
v 0.0 1.0 0.0
v 0.0 0.0 1.0
v 1.0 1.0 0.0
v 0.0 1.0 1.0
v 1.0 0.0 1.0
v 1.0 1.0 1.0
#8 normals
vn 0.0 0.0 0.0
vn 1.0 0.0 0.0
vn 0.0 1.0 0.0
vn 0.0 0.0 1.0
vn 1.0 1.0 0.0
vn 0.0 1.0 1.0
vn 1.0 0.0 1.0
vn 1.0 1.0 1.0
#4 uv's
vt 0.0 0.0
vt 1.0 0.0
vt 0.0 1.0
vt 1.0 1.0
#5 faces
o zero
f 1/1/1 #point
f 1/1/1 2/2/2 #line
f 1/1/1 2/2/2 4/4/3 #tri
f 1/1/1 2/2/2 4/4/3 8/8/4 #quad
o one #these are objects btw
f 1 3 5 6 7 8 #poly
that obj should work btw
I just made it up and typed it out
Didn't know that.
Here's a load of questions, see how many you can answer lol:
So you're adding polys to your template?
What about vertices?
Does your template include the header for the mdl0? (All the hex from MDL0 to the load of ÿÿÿÿ)
What parts are you missing from your template?
I really need to get that template to work O_O
Teach me anything and everything you know