|
595 | 595 | var container = document.getElementById('3d');
|
596 | 596 | var loader = new THREE.GLTFLoader();
|
597 | 597 | var canvasDigits = document.getElementById('canvasDigits');
|
598 |
| - scene.background = new THREE.Color(0x111111); |
| 598 | + scene.background = new THREE.Color(0x58585A); |
599 | 599 | renderer.setSize(177, 177);
|
600 | 600 |
|
601 | 601 | renderer.setPixelRatio(4);
|
|
613 | 613 | var geometry = new THREE.BoxGeometry(1, 1, 1);
|
614 | 614 | ledMaterial = new THREE.MeshBasicMaterial({ color: 0x111111 });
|
615 | 615 | ledObject = new THREE.Mesh(geometry, ledMaterial);
|
616 |
| - ledObject.position.set(-4.5, 4, 0); |
| 616 | +// ledObject.position.set(-4.5, 4, 0); |
| 617 | + ledObject.position.set(9, -10, 0); |
617 | 618 | arduinoModel.add(ledObject);
|
618 | 619 | arduinoModel.rotation.x = 270 * (Math.PI/180); // Show the bottom side of the board by default
|
619 | 620 | ledLight = new THREE.PointLight(0x111111, 3, 100);
|
620 |
| - ledLight.position.set(-4.5, 4, -1); |
| 621 | + ledLight.position.set(8.7, -10, -5); |
621 | 622 | arduinoModel.add(ledLight);
|
622 | 623 | var sphereSize = 1;
|
623 | 624 |
|
624 | 625 | // Light
|
625 | 626 | const color = 0xFFFFFF;
|
626 | 627 | const intensity = 1;
|
627 | 628 | const light = new THREE.DirectionalLight(color, intensity);
|
628 |
| - light.position.set(-20, 100, 0); |
| 629 | + light.position.set(0, 0, -50); |
629 | 630 | light.target.position.set(0, 0, 0);
|
630 | 631 | scene.add(light);
|
631 | 632 | scene.add(light.target);
|
632 |
| - var hemiLight = new THREE.HemisphereLight(0xffffff, 0xffffff, 1000); |
| 633 | + var hemiLight = new THREE.HemisphereLight(0xffffff, 0xffffff, 1); |
633 | 634 | scene.add(hemiLight);
|
634 | 635 |
|
635 | 636 | // Camera
|
636 |
| - camera.position.set(0, 40, 0); |
| 637 | + camera.position.set(0, 25, 0); |
637 | 638 | camera.rotation.y = Math.PI; // 180
|
638 | 639 | camera.lookAt(new THREE.Vector3(0, 0, 0));
|
639 | 640 | renderer.render(scene, camera);
|
|
0 commit comments