Skip to content

Commit

Permalink
both big files can be loaded and colors seem to be match
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvyozdo4ka committed Sep 8, 2021
1 parent aac0a05 commit 41519fc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions task6-ply-road-load.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit 41519fc

Please sign in to comment.