Qhimm.com Forums
Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Gromtar on 2010-09-06 04:41:51
-
Hiho,
again i have some litle question ;D
The thing is my english is not the best so im not sure if i understood the Wiki correct.
Im currently working on the p file and need to get the vertices.
The wiki says this "you have to add group.VerticesStartIndex to each vertex index".
does this means i have to add the group.VerticesStartIndex to each index i get from the polygon.VertexIndex?
Somthing like this
v1.x = vertices[groups[x].VerticesStartIndex + polygons[y].vi_1].x;
EDIT:
------------------------------------------------
Ok now its "half" working ::)
Her face is just a hole :?
(http://www.communityworld.de/tifa_head.jpg)
-
Your polygons are inside-out. Flip your normals.
-
Your polygons are inside-out. Flip your normals.
Backface culling is done on the winding and not the normals. So you may need to change the vertex order. An easy test is switching the backface culling off.
It could be that the face is intersecting the near clipping plane, so moving it back a bit may work.
-
Now i looks good :)
(http://www.communityworld.de/ff7_heads.jpg)
But the face groups are messed up
(http://www.communityworld.de/ff7_heads_faces.jpg)
The heads are working but why does the faces look so broken :o any ideas ? ;)