Hersir Posted July 11, 2017 Share Posted July 11, 2017 Hi, I applied scene optimisation like this, SceneOptimizer.OptimizeAsync(this.scene, SceneOptimizerOptions.ModerateDegradationAllowed(30)); And got error: Cannot merge meshes because resulting mesh will have more than 65536 vertices. Please use allow32BitsIndices = true to use 32 bits indices After checking code I found that Mesh merge accepts its as parameter, so can I somehow set it so SceneOptimiser can use it or there is something else what I can do? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 11, 2017 Share Posted July 11, 2017 Hello this is not supported by default as the goal of the optimizer is too reduce complexity so using 32bits indices is not a good idea Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 11, 2017 Share Posted July 11, 2017 You could do the merge of those meshes causing the problem, then do the optimizer call. If there are too many meshes to hard code, Write a loop which makes the array of meshes to merge by checking the material (maybe that's what optimizer does). Quote Link to comment Share on other sites More sharing options...
Hersir Posted July 12, 2017 Author Share Posted July 12, 2017 Thanks for info 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.