Generate LOD models

Blitz3D Forums/Blitz3D Programming/Generate LOD models

Sake906(Posted 2009) [#1]
I have seen the LodMesh.bb code in the samples and it is exactly the approach I am looking for. Basically I want to generate quick LOD meshes in code from the loaded ones and then cache them in memory for later use. So far I have the LOD handling code ready, just lack of the models to swap the main one at distances.

The problem with LodMesh.bb in the archives is that it does not seem to support multisurface meshes, it completely fails when I try to use it on any of my own meshes sadly. Has anyone seen something similar around here that could do it?


Ross C(Posted 2009) [#2]
You will probably need to modify the code so it scans through every surface. It's probably only taking the first surface it comes across. It shouldn't be too difficult to modfiy it.

Can you paste the code for this? I don't seem to have it...


Ross C(Posted 2009) [#3]
Wait, this should work. I found this to be excellent when i used it last:

By John J:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1285


Sake906(Posted 2009) [#4]
Very nice! thanks a lot for that last one. My meshes are being broken apart when there is a lot of reduction, my guess is that the many surfaces being present are causing this.