New languages spoken sign

This commit is contained in:
2024-01-28 00:28:33 +01:00
parent 5b5fdabfba
commit 6a5071313b

View File

@@ -482,20 +482,31 @@ export async function addAssetsOnScene(scene){
} }
/* LANGUAGES & TECHNOLOGIES */ /* LANGUAGES & TECHNOLOGIES */
const signCopy = sign.scene.clone(); const techSign = sign.scene.clone();
signCopy.position.x = -12; techSign.position.x = -12;
signCopy.position.y = 10.7; techSign.position.y = 10.7;
scene.add( signCopy ); scene.add( techSign );
const signPlaneMaterial = new THREE.MeshBasicMaterial({ map:textureLoader.load("/objects/textures/known_technologies.png") }); const techSignMaterial = new THREE.MeshBasicMaterial({ map:textureLoader.load("/objects/textures/known_technologies.png") });
const signPlane = new THREE.Mesh(SignPlanegeometry, signPlaneMaterial); const techSignPlane = new THREE.Mesh(SignPlanegeometry, techSignMaterial);
signPlane.rotateOnWorldAxis(new THREE.Vector3(1,0,0), MathUtils.degToRad(90)); techSignPlane.rotateOnWorldAxis(new THREE.Vector3(1,0,0), MathUtils.degToRad(90));
signPlane.position.set( signCopy.position.x + 0.06, signCopy.position.y - 0.015, 1.65);// Determined by hand techSignPlane.position.set( techSign.position.x + 0.06, techSign.position.y - 0.015, 1.65);// Determined by hand
scene.add(signPlane); scene.add(techSignPlane);
//Zoom picture plate
addZoomPlate(-12, 9.5, "/objects/textures/known_technologies.png"); addZoomPlate(-12, 9.5, "/objects/textures/known_technologies.png");
/* SPOKEN LANGUAGES */
const spokenLanguagesSign = sign.scene.clone();
spokenLanguagesSign.position.x = 19.9;
spokenLanguagesSign.position.y = 11;
scene.add( spokenLanguagesSign );
const spokenLanguagesMaterial = new THREE.MeshBasicMaterial({ map:textureLoader.load("/objects/textures/spoken_languages.png") });
const spokenLanguagesPlane = new THREE.Mesh(SignPlanegeometry, spokenLanguagesMaterial);
spokenLanguagesPlane.rotateOnWorldAxis(new THREE.Vector3(1,0,0), MathUtils.degToRad(90));
spokenLanguagesPlane.position.set( spokenLanguagesSign.position.x + 0.06, spokenLanguagesSign.position.y - 0.015, 1.65);// Determined by hand
scene.add(spokenLanguagesPlane);
addZoomPlate(19.9, 10.2, "/objects/textures/spoken_languages.png");
/* -------------------- /* --------------------
FLOWERS GARDEN FLOWERS GARDEN
-------------------- */ -------------------- */