DAG construction Nanite style #681
Closed
GiuseppeCassisi96
started this conversation in
General
Replies: 0 comments
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.
-
Hey,
I would like to implement my LOD algorithm cluster-based . I'm following the Nanite's approcch, so the first step is to construct the DAG in order to select the appropriate LOD at runtime. I use the library to subdivide and simplify my mesh. I encountered troubles in DAG implementation, especially in the "merge" phase implementyation. I tried to following this previus discussion: https://github.com/zeux/meshoptimizer/discussions/569 , but the assertion "indices[i] < vertex_count" is launched.
Here you can see the implementation code:
The merge and group metods:
Sorry for the huge code. Any suggestions will be greatly appreciated.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions