Dal Posted July 17, 2016 Share Posted July 17, 2016 Does anyone know a way to remove unused vertices in a mesh without breaking the indices? I guess i need some kind of function that can delete vertices from an array and remap all the indices to the new array locations for the remaining vertices. Does something like that already exist? Quote Link to comment Share on other sites More sharing options...
adam Posted July 17, 2016 Share Posted July 17, 2016 My first thought is: Why do you need to do this? Quote Link to comment Share on other sites More sharing options...
Dal Posted July 17, 2016 Author Share Posted July 17, 2016 3 hours ago, adam said: My first thought is: Why do you need to do this? For my terrain implementation... it creates the vertices for the whole terrain, then creates triangles only for the ones that are actually needed for the current LOD. The theory is the verts will be set only once, and just the indices need to be updated, but it still seems to be too heavy so I want to try pushing only the currently used verts instead to see if that improves performance - but if I remove vertices from the array it will break the indices order. adam 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.