Support - Forum aa
« Back to Support» Understanding indexVector
Posted on 01.05.2012 by Marsh, Pat
I was wondering if you guys could give me a bit more explanation of exactly how indexVectors for surfaces work.. I know its an array referencing index buffers but i'm not exactly sure how they work. If you need an example of what i'm trying to do let me know but i'm hoping to understand how the values of the array affect the drawing of the surface...
Thanks again and as always - awesome job with the engine!!!
Thanks again and as always - awesome job with the engine!!!
Reply By Nehmad, Ariel 01.09.2012
hi pat, as you said, yes, they are just indices referencing to the vertices buffer.
and you should have three indices for each triangle.
each index corresponds to vertexVector[ index * sizePerVertex ]
where sizePerVertex is the amount of data for each vertice..for example....3 values for vertex position, 3 for normals, and 2 for uv's = 8 in most of the cases;
so, you'll have 8 values for each vertex.
and you should have three indices for each triangle.
each index corresponds to vertexVector[ index * sizePerVertex ]
where sizePerVertex is the amount of data for each vertice..for example....3 values for vertex position, 3 for normals, and 2 for uv's = 8 in most of the cases;
so, you'll have 8 values for each vertex.
Popular
- 1. Question of Alpha sorting system
- 2. Rndering issue on AIR Mobile build
- 3. Problems with bone position?
- 4. Is it possible to make a primitive...
- 5. Messed up textures in Flare 3d Studio
- 6. Moving "by hand" the corners of a Plane
- 7. Shapes, splines and knots
- 8. Diferencia entre Flare3D Studio y...
- 9. Transform between two states
- 10. ReferenceError: Error #1074
