arcticPigs release V1.0 helpefiles |
![]() |
A layer is the core object of the 3D window. A layer contains one or more scripts that drive the animation and through the layer object you create these scripts. You can create nested arcticLayer objects. This allows you to define areas on your 3D window that are in essence independent 3D worlds. Objects from different layers cannot intersect, there is a fixed depth sequence to them.
Name | Type | Description |
---|---|---|
addLight | ![]() | Creates new light object and adds it to the 3D scene. light addLight(String name, String type) |
addModel | ![]() | Creates a new model instance from a modelFile and adds it to the scene. model addModel(String modelname) |
clearLayer | ![]() | Clears the entire layer of all model instances, lights and scripts. void clearLayer() |
newLayer | ![]() | Creates a new arcticLayer object. arcticLayer newLayer( VARIANT width, VARIANT height, String anchor, VARIANT xOffset, VARIANT yOffset, float zRange) |
newScript | ![]() | Creates a new script script newScript(String scriptname) |
newViewpoint | ![]() | Creates a new cameraPosition object cameraPosition newViewpoint() |
toViewpoint | ![]() | Starts a camera pan to the position defined by the cameraPosition object passed into this function. viod toViewpoint(cameraPosition viewpoint, float panningtime) |
zoomFit | ![]() | Performs a zoom-fit on all active objects in the scene. void zoomFit() |
camera | ![]() | Returns the camera object |
followCursor | ![]() | A boolean value that signifies wether the hit object will be located underneath the cursor even when the cursor does not actually hit an object in the window. |
hit | ![]() | Returns the base object that contains the current point hit by the cursor in the 3D scene. |
lights | ![]() | Returns the light collection object |
models | ![]() | Returns the models collection object |
scripts | ![]() | Returns the scripts collection object |
Last Updated: 07/03/02 |