Scene

Scene Scene

A scene holds all the shapes, the BVH tree, and the render functions

Constructor

new Scene()

Source:

Classes

Scene

Methods

ortho(perspective)

Source:
Parameters:
Name Type Description
perspective Bool

if True Orthograpic. default perspective

render(eye, center, up, width, height, fovy, near, far, step) → {Paths}

Source:
Parameters:
Name Type Description
eye Vector

Where the camera looks from

center Vector

of the scene

up Vector

should be default z up (0,0,1)

width Number

in pixels or units

height Number

in pixels or units

fovy Number

field of view y

near Number

near cut for line removal -- suggested values .1 or lower

far Number

far cut for line removal -- suggested values 100 or more depending on distance of scene

step Number

less than 1, this value is a multiplier, so to chop each line into ten segments one would use .1, higher values are slower but provide more accuracy

Returns:
Type
Paths

Scene

new Scene()

Description:
  • These are all the things you should need to start drawing shit. ./Scene.js

Source:
Author:
  • Robert Houston
See:
  • Scene.js and some other classes
  • "Cube.js"
  • @link {Paths}

Classes

Scene

Methods

ortho(perspective)

Source:
Parameters:
Name Type Description
perspective Bool

if True Orthograpic. default perspective

render(eye, center, up, width, height, fovy, near, far, step) → {Paths}

Source:
Parameters:
Name Type Description
eye Vector

Where the camera looks from

center Vector

of the scene

up Vector

should be default z up (0,0,1)

width Number

in pixels or units

height Number

in pixels or units

fovy Number

field of view y

near Number

near cut for line removal -- suggested values .1 or lower

far Number

far cut for line removal -- suggested values 100 or more depending on distance of scene

step Number

less than 1, this value is a multiplier, so to chop each line into ten segments one would use .1, higher values are slower but provide more accuracy

Returns:
Type
Paths