From 41519fc8398859f1dd75418a22c914adee7ec492 Mon Sep 17 00:00:00 2001 From: Zvyozdo4ka <74532816+Zvyozdo4ka@users.noreply.github.com> Date: Wed, 8 Sep 2021 19:46:52 +0900 Subject: [PATCH] both big files can be loaded and colors seem to be match --- task6-ply-road-load.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/task6-ply-road-load.html b/task6-ply-road-load.html index b5214ff..e9588ac 100644 --- a/task6-ply-road-load.html +++ b/task6-ply-road-load.html @@ -51,11 +51,19 @@ render // listener - function in JavaScript or EventListener, which will get notification if event have happened. ); controls.minDistance = 0.001; - controls.maxDistance = 80; + controls.maxDistance = 200; controls.enablePan = false; // ambient - // scene.add(new THREE.AmbientLight(0xffffff, .2)); + scene.add(new THREE.AmbientLight(0x443333, .2)); + + const dirLight1 = new THREE.DirectionalLight( 0xffddcc, 1 ); + dirLight1.position.set( 1, 0.75, 0.5 ); + scene.add( dirLight1 ); + + const dirLight2 = new THREE.DirectionalLight( 0xccccff, 1 ); + dirLight2.position.set( - 1, 0.75, - 0.5 ); + scene.add( dirLight2 ); // light const light = new THREE.PointLight(0xffffff, 1); @@ -69,7 +77,7 @@ var particles; - loader.load( './three.js-dev/examples/models/ply/binary/model.ply', function ( geometry ) { //works with function geometry, 'let geometry = new BufferGeometry();' + loader.load( './three.js-dev/examples/models/ply/binary/model_210603_171859.ply', function ( geometry ) { //works with function geometry, 'let geometry = new BufferGeometry();' console.log(geometry);