What is the unit for Three js objects?

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 the camera, what is the device for the Near and Far parameters.

In a cube, what is the unit of parameters for CubeGeometry

Please provide me with a URL where I can find information about

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

+5
source share
2 answers

Pretty sure these options are units in OpenGL. If you look at the OpenGL red book, for each of them in chapter 3

http://www.glprogramming.com/red/chapter03.html

There is a short paragraph here:

" - - OpenGL? , , . . 1,0 20,0 , , , . , . ".

, , - , , , , .

+9

All Articles