Replies: 2 comments
|
#define B3_MESH_STACK_SIZE 256 //mesh.c file what is mean ? if vertices.count>B3_MESH_STACK_SIZE b3CreateMesh fail ? |
0 replies
|
There is no stride support. Might be feasible to add. The mesh stack is for the height of the binary tree, not the number of vertices/triangles/etc. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I not understood how do vertices stride.
My mesh have stride:12 bytes vertices.xyz, 12 bytes normals.xyz, 8 bytes texture UV.
In my mesh one stride=32 bytes. In my mesh 100 vertices
100*32= 3200 bytes size vertex data.
My indices 32 bits(4bytes as int). indices count = 180
b3MeshDef str;//for b3CreateMesh
str.vertexCount = what i must write value ? 100
str.triangleCount = what i must write value ? 180/3
Did I must sorting from my mesh vertices ?
I mean copy 12 bytes vertices(without normals and UV) to NewVrtxBuffer.
str.vertices= NewVrtxBuffer;
All reactions