Author Topic: VerticesStartIndex to each vertex index  (Read 3536 times)

Gromtar

  • *
  • Posts: 12
    • View Profile
VerticesStartIndex to each vertex index
« 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
Code: [Select]
v1.x = vertices[groups[x].VerticesStartIndex + polygons[y].vi_1].x;



EDIT:
------------------------------------------------
Ok now its "half" working  ::)
Her face is just a hole  :?






« Last Edit: 2010-09-06 08:14:32 by Gromtar »

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: VerticesStartIndex to each vertex index
« Reply #1 on: 2010-09-06 08:51:09 »
Your polygons are inside-out. Flip your normals.

Micky

  • *
  • Posts: 300
    • View Profile
Re: VerticesStartIndex to each vertex index
« Reply #2 on: 2010-09-06 18:42:49 »
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.
« Last Edit: 2010-09-06 21:00:34 by Micky »

Gromtar

  • *
  • Posts: 12
    • View Profile
Re: VerticesStartIndex to each vertex index
« Reply #3 on: 2010-09-10 11:23:08 »
Now i looks good  :)


But the face groups are messed up


The heads are working but why does the faces look so broken  :o any ideas ?  ;)