You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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