Hey guys,
I’m all okay with LOD when it comes down to something such as a quad. However, I am intrigued how I would go about setting up LOD for something such as this:
Geometry levelGeom = new Geometry(“OurMesh”, mapmesh);
Material matWire;
matWire = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
matWire.getAdditionalRenderState().setWireframe(true);
matWire.setColor(“Color”, ColorRGBA.Green);
Material mat1 = new Material(assetManager, matDefName);
mat1.setTexture(“ColorMap”, assetManager.loadTexture(“Textures/terrain.png”));
mat1.setBoolean(“VertexColor”, true);
//levelGeom.setMaterial(mat1);
levelGeom.setMaterial(mat1);
levelGeom.setLocalTranslation(0, -100, 0);
levelGeom.setLocalScale(2f, 1f, 2f);
this.attachChild(levelGeom);
You’d need LOD meshes… The SDK has an option to generate these on import
1 Like