Version 0.89 Crocodile Rock – Lots of new features!
|By dcantor . December 10, 2012 . changelog.|
The latest version of voxelent is packed with new features. Let’s take a look at some of them
getActor: retrieves an actor by name or by UID
getActorByUID: retrieves an actor by unique identifier (UID)
getProgram: returns the current shading program name
setup: the third argument (handleLayout) indicates if the view can resize dinamically (true) or not (false).
There is a new visualization mode
vxl.def.actor.mode.BB_AND_SOLID. This mode will show the bounding box of the actor at the same time it shows the geometry. This feature is useful for instance if you are implementing your own collision detection algorithm and want to visually inspect which actors can collide.
Actors now have an internal matrix transform that encodes local actor transformations such as position, scale and rotations. The methods
setScale have been updated to use this matrix, and there are new additional methods:
The code for the tracking cameras has been reviewed and updated. Additionally, cameras can now follow actors in motion. For example:
var camera = vxl.c.camera; var cone = vxl.api.getActor('cone'); camera.setType(vxl.def.camera.type.TRACKING); camera.follow(cone, vxl.def.camera.tracking.ROTATIONAL);
There are three tracking modes:
For more information please check the API docs
New methods have been implemented:
unfollow. The method
focusOn has been replaced by
For more info, check the vxlCamera API docs
The dolly interaction Alt+Mouse dragging has been replaced by Ctrl + Mouse dragging
Double click on the view invokes