I’ve got a massive city object which I made using one of the city making scripts (awesome tech!!) As it happens, it doesn’t seem to run too well in the game engine, so I need some LOD system to make it possible to use it in game. Since the cubes which make up buildings are linked as one object, I can’t get every to run a script and hide itself based on its own distance to the camera (which would be crazily long to setup).
I’m wondering if there is a python or blender technique for making individual polygons or vertices of a mesh become invisible and reappear based on their distance to the camera. So far, I’ve looked at the documentation, and although there some abilities to detect each vertex’s distance from an object (e.g vertex.getXYZ()), I can’t see any method to make them invisible.
Thanks for your time,