Replies: 2 comments
|
Or b3CreateCylinder created only points and not created vertx,index buffers ? b3CreateCylinder created points, i checked and get points. How build from points vertices data and triangles indices ? Strange. In b3HullData exist vertexOffset and faceOffset. Why ? |
0 replies
|
There are functions to get the vertices off the hull. https://box2d.org/documentation3d/group__hull.html#ga04d4f1ee98bc99e5bd4d3d4a5455843b Hulls have hidden data off the end of the structure. This allows them to be easily serialized. |
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 created Cylinder.
b3HullData* cylinder = b3CreateCylinder( float height, float radius, float yOffset, int sides );
vertices data from b3HullData* cylinder what stride ? 12 bytes or 24(vertex and normal) ?
I want get vertices data from b3HullData* cylinder . How do this ?
Then i want create my vertexBuffer in Directx 11
Main idea get the same size cylinder for render Directx 11.
What is soaVertexOffset ?
And how get indices from b3HullData* cylinder ? And what size indxs ? 4 bytes or 2 bytes(as 16 bits) ?
All reactions