Open mediadog opened 7 years ago
I need to recheck what defaults are passed, but in any case, those could be exposed.
As a side note I wanted to move to another wrapper than the one I use now (P/Invoke version, so less 32/64 bits issues, and complete one), so it's a bit part of larger work.
Great! I did some testing using the Assimp viewer to apply the flags to a model and save it back out again. The model that got me looking into this is one done by some architecture graduate students (not 3D modeling savvy) in Rhino that is fully textured with 3600+ meshes.
As exported, it renders on my i7 laptop in vvvv at 12FPS. The model converted using these flags has 320 meshes and renders at 70FPS with no visual difference, quite the win! (I'm guessing lots of meshes in DX11 ia a Very Bad Idea...)
There are a number of useful flags to use when opening a model with Assimp, most notably the two below. Where might I go poking about in the DX11 assimp code to add these?
aiProcess_OptimizeMeshes A postprocessing step to reduce the number of meshes.
aiProcess_OptimizeGraph A postprocessing step to optimize the scene hierarchy.