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.

Properties, Events and Methods

Name Type Description
addLight MethodCreates new light object and adds it to the 3D scene.
light addLight(String name, String type)
addModel MethodCreates a new model instance from a modelFile and adds it to the scene.
model addModel(String modelname)
clearLayer MethodClears the entire layer of all model instances, lights and scripts.
void clearLayer()
newLayer MethodCreates a new arcticLayer object.
arcticLayer newLayer( VARIANT width, VARIANT height, String anchor, VARIANT xOffset, VARIANT yOffset, float zRange)
newScript MethodCreates a new script
script newScript(String scriptname)
newViewpoint MethodCreates a new cameraPosition object
cameraPosition newViewpoint()
toViewpoint MethodStarts a camera pan to the position defined by the cameraPosition object passed into this function.
viod toViewpoint(cameraPosition viewpoint, float panningtime)
zoomFit MethodPerforms a zoom-fit on all active objects in the scene.
void zoomFit()
camera PropertyReturns the camera object
followCursor PropertyA 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 PropertyReturns the base object that contains the current point hit by the cursor in the 3D scene.
lights PropertyReturns the light collection object
models PropertyReturns the models collection object
scripts PropertyReturns the scripts collection object

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.