');});function addModelToScene(geometry,materials){console.log("macouleur=ok");console.log("matexture=");var material=new THREE.MeshFaceMaterial(materials);model=new THREE.Mesh(geometry,material);console.log("var2=0x000000 var1=0xffffff");model.material.materials[0].color.set(0x000000);model.material.materials[1].color.set(0xffffff);model.castShadow=true;model.receiveShadow=true;model.name="doppler";var scale=1.6;model.position.set(0,0,0);model.scale.set(scale,scale,scale);scene.add(model);animate();$('.load3d').removeClass("loader3D");$('#txtLoader').addClass("disparait");$('.load3d').addClass("disparait");} var geometry=new THREE.BoxGeometry(60,30,60);var material=new THREE.MeshPhongMaterial({color:0xa0adaf,shininess:10,side:THREE.BackSide});renderer=new THREE.WebGLRenderer({antialias:true,alpha:true});renderer.setPixelRatio(window.devicePixelRatio);renderer.setSize(SCREEN_WIDTH,SCREEN_HEIGHT);renderer.shadowMap.enabled=true;renderer.shadowMap.type=THREE.BasicShadowMap;document.getElementById('container').appendChild(renderer.domElement);controls=new THREE.OrbitControls(camera,renderer.domElement);controls.target.set(0,0,0);controls.update();controls.minDistance=20;controls.maxDistance=40;window.addEventListener('resize',onWindowResize,false);} function onWindowResize(){camera.updateProjectionMatrix();} function animate(){requestAnimationFrame(animate);render();} function render(){var timer=Date.now()*0.000008;scene.rotation.y=Math.sin(timer)*100;renderer.render(scene,camera);}});function loadimg3d(){$('.messageError').addClass("apparait");$('.posloaderPourcent').addClass("disparait");$('.loader3D').addClass("disparait");$('#txtLoader').addClass("disparait");$('canvas').addClass("disparait");$('.btObjet').addClass("disparait");$('#messageError').html('');} function messageVenir(){$('.messageError').addClass("apparait");$('.posloaderPourcent').addClass("disparait");$('.loader3D').addClass("disparait");$('#txtLoader').addClass("disparait");$('canvas').addClass("disparait");$('.btObjet').addClass("disparait");$('.BtZoom').addClass("disparait");$('.messageError').addClass("a-venir");document.getElementById('messageError').innerHTML="À venir...";}