Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the unit for the Three js objects?

Tags:

three.js

var camera = new THREE.PerspectiveCamera(
    35,         // Field of view
    800 / 640,  // Aspect ratio
    .1,         // Near
    10000       // Far
);

var cube = new THREE.Mesh(
    new THREE.CubeGeometry( 5, 5, 5 ),
    new THREE.MeshLambertMaterial( { color: 0xFF0000 } )
);

In camera, what is the unit for Near and Far parameters.

In Cube what is the unit of the parameters for CubeGeometry

Please point me to the url where, i can find details about

Object space - (the local axis used to draw an object) World space - (the global axis)

like image 248
Rajkamal Subramanian Avatar asked Jul 08 '12 20:07

Rajkamal Subramanian


1 Answers

The official answer is that ThreeJS uses SI units for all measures, see here:

https://github.com/mrdoob/three.js/issues/6259

like image 106
bhouston Avatar answered Oct 25 '22 07:10

bhouston