![]() ![]() ![]() Presenter = new Presenter("draw-canvas") In the following example we just asked to 3DHOP to use the TurnTable trackball. Each trackball has a unique name to be used in the type field (see further down). If we want to explicitly ask for a specific trackball, or to configure its parameters, it is necessary to add a trackball entity while declaring the scene in the " setScene" function, and specify the type of trackball we want. The default trackball is the TurnTable trackball. When declaring the 3DHOP scene, if nothing is explicitly specified, the viewer will use the default trackball, created with its default values. Additionally, each of the trackball may be configured, setting up motion limits and starting parameters. As different shapes of objects would work better with a different mapping of movements, 3DHOP does offer different trackballs, each one with a specific behaviour. The way the mouse controls are mapped on the object is determined by an entity called Trackball a trackball is a description of how the object moves/rotates/zoom depending on the mouse buttons, motions and keyboard press. 3DHOP uses the "object in hand" metaphor: the camera framing the scene is fixed in front of the object and the user, with the mouse, moves the object in front of the camera. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |