Hi, i’ve tried applying LOD to my glb model the model itself is 1 huge mesh with buildings and land in it all merged into a single mesh with multiple materials (not sure if this is important or not)
anyways after applying lod the quality doesn’t seem to be affected?
here is how im applying it:
var lod;
lod = new THREE.LOD();
loaderGB.load('/map/mass.glb', function (land) {
landmass = land.scene;
landanimate = land;
land.scene.traverse( function ( child ) {
if ( child.isMesh ) {
child.material.metalness = 0.2;
child.castShadow = true;
child.receiveShadow = true;
child.frustumCulled = false;
}
} );
land.scene.scale.set(9, 9, 9);
land.scene.position.set(27, -5, 145);
land.scene.rotation.y = 3.4;
land.name="village";
lod.addLevel(land.scene, 5);
scene.add(lod);
} );
the model is also compressed with DRACO if that is relevant…