Commit a99fc268 authored by RENARD Nicolas's avatar RENARD Nicolas
Browse files

Replace Projetfilrouge-Modelisation.js

parent ae7b0836
Pipeline #5192 passed with stage
in 14 seconds
......@@ -13,8 +13,10 @@ var cubeheight = 400;
var compteurcam = 0;
var loader = new THREE.TextureLoader();
var loader2 = new THREE.TextureLoader();
var loader3 = new THREE.TextureLoader();
var texture = loader.load( 'brick_2.png' );
var texture2 = loader2.load( 'bricknormal.png' );
var texture3 = loader3.load( 'feather.png' );
var RotCam = false;
var animation = 0 ;
var etatanim = true;
......@@ -180,6 +182,18 @@ function createMarbles(elements){
sphere.position.x = -600;
sphere.position.y = size;
sphere.position.z = 90;
loader3 = new THREE.TextureLoader();
var tail = new THREE.Mesh(
new THREE.PlaneGeometry( 100, 100, 1, 1 ),
new THREE.MeshLambertMaterial(
{ side: THREE.DoubleSide,map: texture3, transparent: true} ) );
tail.rotation.x = -40.0 * Math.PI / 180;
tail.position.x = -600;
tail.position.y = size+65;
tail.position.z = 25;
elements.add( tail );
elements.add( sphere );
//Pour le moment les billes à l'interieur du bocal ne sont pas modélisées, à voir comment on peu modéliser un bocal plus réaliste
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment