The 3D model renders black at first and later their respective images loads on the model. I need to render the 3d with full texture without black image shown first. Can we expect this behavior, without converting them to .gltf. the file size is large of fbx/obj model.
animate = () => {
window.requestAnimationFrame(this.animate);
this.controls.update();
this.renderer.render(this.scene, this.camera);
};
var mtl = new MTLLoader();
var objl = new OBJLoader();
mtl.load("3d.mtl", materials => {
materials.preload();
objl.setMaterials(materials).load("3d.obj",object => {
this.scene.add(object);
this.renderer = new THREE.WebGLRenderer();
this.container.appendChild( renderer.domElement );
this.animate();
},
onProgress,
onError
);
});