js simplify with option for ranges would have been nice #716
vegarringdal
started this conversation in
Ideas
Replies: 1 comment
-
When processing a range of indices (eg used for multidraw), you should be able to simplify each subset individually by calling simplify on a slice of the index array. You might want to also use the recently added "Sparse" flag when doing this (add it to flags array) to accelerate processing. If the ranges have connected elements (eg if they represent material splits), "LockBorder" is also good to use in these situations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for making this amazing library and sharing it. 🥇
Maybe my idea is dumb, but Ill ask anyways :-)
In my app I have merged meshes, and I know the draw ranges of each item.
I use this with a custom batchedmesh in threejs, batchedmesh is using (WEBGL_multi_draw extension)
In meshoptimizer we atm have this:
Would have been nice to be able to send in ranges of items, and it could use this information with "lockedborder" flag
Or maybe it could aslo return back cleaned up position array too ?
Maybe option we could pass in to tell its allowed to merge position of borders if they are closer than x distance
Beta Was this translation helpful? Give feedback.
All reactions