| Home | zeGraph lib | Lua lib | Custom lib | Tutorials | Notes | XML Script | C-Talk | Z-Script |
Graph
   axis
   blend
   color
   color bar
   fog
   freetype
   light
   line
   material
   node
   point
   plot
   polygon
   render
   scene
   stencil
   texcoord
   text
   texture
   vertex
Utility
   array
   bio
   hdf
   make
   math
   netcdf
Auxiliary
   curl
   expact
   sqlite
   window

zeScene

Use .new("scene") to create the object. It determines the foreground color, the view port, and the projection type. The default view port is (0, 0, 512, 512).

:ortho()

Uses orthogonal projection.

:perspective(s)

Uses perspective projection and scale the view depth by s. The defualt view depth is the larger of viewport width and height.

:set{...}

Sets scene properties with a Lua table. Valid key-value pairs in the Lua table are listed as follows.

Key Value Type Remark
color {r, g, b, a} Numbers (0 to 1) in table Sets the foreground color.
viewport {x, y, width, height} Positive numbers in table Sets the viewort.
node obj zeNode Assigns the node object to the scene as the root node.
enable flag Boolean Enables or disables the object.