Borogove
05-09-2007 06:38:51
I've got multiple LODs of terrain mesh, and I can load any one of them individually through createEntity and they work fine. When I try and set up multiple LODs something like this:
I get a crash. Interestingly, according to the log, it's loaded the L0 LOD and moved on to loading other resources before the crash, but never mentions the L1 LOD in the log. Am I doing something blindingly obviously wrong?
floor = sceneManager.createEntity( "terrain_0000_0000", "terrain_0000_0000_L0.mesh")
mesh0 = floor.getMesh()
mesh0.createManualLodLevel( 50.0, "terrain_0000_0000_L1.mesh" )
floornode = sceneManager.getRootSceneNode().createChildSceneNode( "terrain_0000_0000_node" )
floornode.attachObject( floor )
I get a crash. Interestingly, according to the log, it's loaded the L0 LOD and moved on to loading other resources before the crash, but never mentions the L1 LOD in the log. Am I doing something blindingly obviously wrong?