Merging, Simplify and Split groups of meshlets #684
Replies: 1 comment 4 replies
-
My recommendation would be to start from a simpler baseline, where you always refer to vertices in the original vertex buffer and feed a small index buffer that refers to original vertices to For this you basically need to keep meshlets as sets of triangles/indices that refer to the original vertices. After calling This post https://jglrxavpok.github.io/2024/03/12/recreating-nanite-faster-lod-generation.html covers improvements to time it takes to do this processing but this is more involved and I'd recommend starting with the simpler scheme outlined above. I would only recommend going here once you have everything else fully working. (I'm also planning to look into providing an option to To answer your specific question about the index buffer count, you're working with triangles, and every triangle has 3 indices, so index buffer count must be divisible by 3. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to: merge a group of N meshlets, simplify that group, and then split the group to generate N/2 meshlets. I am having troubles with the merging operation.
For the merging operation, I was considering creating a local index buffer for each group. I would fill this local index buffer using the
meshlet_vertices
and the appropriate offset and vertex count (meshlet.vertex_offset
andmeshlet.vertex_count
). I would then use this local index buffer to create a new sub-vertex buffer (also known as a local vertex buffer). In the Simplify and Split operation, I will use these two buffers (localIndexBuffer
andlocalVertexBuffer
). Unfortunately, the creation of the local index buffer in this way seems incorrect because an assert is thrown (index_count % 3 == 0
). So I have two questions:Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions