Skip to content

Commit

Permalink
In normal ratio loading as mesh fused_changed.ply and resizing. Orbit…
Browse files Browse the repository at this point in the history
… controlls still unstable. Functions would be supplemented.
  • Loading branch information
Zvyozdo4ka committed Sep 6, 2021
1 parent 447f380 commit 500421f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions task3-ply-load.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
35, //field of view in degrees
window.innerWidth / window.innerHeight, //aspect ratio - соотношение сторон
1, // near clip frame - the coordinate of starting point to view on Z axe for frame, z=-n
15 //far clip frame, z=-f, z=x=y=0 - view/eye point, frustum view - truncated pyramid - усеченная пирамида
40 //far clip frame, z=-f, z=x=y=0 - view/eye point, frustum view - truncated pyramid - усеченная пирамида
);
camera.position.set(3, 0.15, 3); // by default x=y=z=0; z is a camera position on z axis, for visualising
camera.position.set(0, 0, 30); // by default x=y=z=0; z is a camera position on z axis, for visualising
scene.add(camera);

// controls
Expand Down Expand Up @@ -72,8 +72,10 @@

mesh.position.y = - 0.2;
mesh.position.z = 0.3;
mesh.rotation.x = - Math.PI / 2;
mesh.scale.multiplyScalar( 0.001 );
mesh.rotation.x = - Math.PI*0;
mesh.rotation.y = - Math.PI*0.8;
mesh.scale.multiplyScalar( 0.01 );
console.log(mesh.geometry);

mesh.castShadow = true;
mesh.receiveShadow = true;
Expand Down

0 comments on commit 500421f

Please sign in to comment.