Any geometrical object placed in the scene can respond to events
invoked by the mouse, specifically, by clicking on the object and moving mouse
cursor over the object. To define the behavior of the object in response to an event
Events container and select one of the available options.
Mouse click and Mouse over
events are independent of each other, so an object can simultaneously support both.
Since collision detection alghoritm is based on GPU (from version 1.3) the performance issues are not significant anymore. Also the accurancy is very high, average 1-3px depending of antialiasing mode.
Let’s see how the object can react in response to clicking on it. Click on the combo box Mouse click:
- Navigate to URL - while clicking, the object will cause the
browser opens the website of the specified address, which you set by clicking on the button . In the open window you enter the full URL address of the website and the way it is to be open in accordance with HTML convention - Self, Blank, Parent or Top .
- Photo target - after clicking on the object, the camera takes the position of one camera of
Photo target type, that had to be placed in the scene before. More on this topic can be found in chapter Cameras
Mouse over event is invoked whenever the mouse cursor enters the area of the object for which the detection of this event is enabled. In response, the object can perform one reaction from several reactions available to choose:
- Fill color - the object will change
the color of surface. In
you choose the default color and characteristics of transition.
Transition - is the time of changing the primary color into destined one, measured in frames. In
Tween section you can define the dynamics of transition from one state to another. See
Animation chapter in order to read more.
- Lines color - changes the color of the line.
- Enable fill mode - enables filling the triangles with color. Using it makes sense when initially in the Surface container Fill checkbox was not selected
- Disable fill mode - disables filling the triangles with color. Using it makes sense when initially in the Surface checkbox Fill container it was selected. If the object was not included in the display of lines, in this situation, while hovering the mouse cursor, it will disappear completely.
- Enable lines mode / Disable fill mode - works similarly to the function above, except that it is in respect to the line, not to the color fill.
- Enable shaking lines - enables Shaking lines mode available from the level of Surface container. Using it makes sense when initially the object has line display turned on.
- Disable shaking lines - disables Shaking lines mode. Using it has sense when Shaking lines mode is initially turned on for the object.
- Enable distortion - turns on Distortion mode available from the level of Surface container.
- Disable distortion - turns off Distortion mode. Using it makes sense when Distortion mode is initially enabled.
- Move - Moves the object according to given shifts on the axis of global coordinate system.
- Rotate - Rotates the object on the set angles around the axis of global coordinate system.
- Scale - Scales the object along the axis of local coordinate system for the object. Value 1 = 100% of the original scale, 0.4 = 40%.
Mouse over event changes the properties of an object only for the duration of stay of mouse cursor over the object. When the cursor leaves the object, the object returns to its original properties with the dynamics defined in Tween Section. In the example below, you can test the action of Mouse over events.