Features:
• Works with Polygon Hotspots
• Tooltip
• When the cursor moves above the horizon it will hide and the system mouse cursor shows
• Hide/Show when required
• Fully Customisable using the Skin Editor
There is a webinar recording covering this component which can be found here: 3D Floating Cursor
To add the 3D Floating Cursor Component to Pano2VR simply download the component for your build.
Please note the Pano2VR 6 version will work in both Pano2VR 6 and Pano2VR 7.
But the Pano2VR 7 version uses the new code element so is not backwards compatible.
Double Click the 3d_floating_cursor.ggskc file, Pano2VR opens if not already open, and will ask in which category it should be saved.
By default, it will use the User-Defined category, but you may choose your own.
To use the component open the skin editor and open the components toolbox.
Select the category and select the component, 3D Floating Cursor, double click to add to your skin.
Make sure all the elements stay in order and are at the bottom of the skin's tree.
To change nodes use Polygon Hotspots, with type Tour Node and it must have a Title, that's important to see the interactivity.
How it works is there are colour and visible logic blocks that have the logic:
When the 3D Floating Cursor moves over a Polygon Hotspot that has a title the condition becomes true, so for the tooltip, it will show and the ring has a colour logic block that will change the colour to green.
Note the logic, when the Hotspot title is NOT empty set the condition to true.
It may be necessary to hide the 3D Floating Cursor to avoid it showing on raised objects or walls in the panorama.
To do this add a Polygon Hotspot in the area it should be hidden and give the Polygon the title, "hide".
There is a visible logic block that will hide the 3D Floating Cursor when the Polygon title is "hide".
When the 3D Floating Cursor is hidden the normal mouse cursor will show.
If Polygon hotspots will be used to hide the 3D Floating Cursor then it will be better to deselect the Hand Cursor under the Hotspot tab in the HTML5 output settings, otherwise, the Mose pointer will turn into a hand.
The ring is a rectangle element with a wide border, you can add the background to turn the ring into a disk.
Using the Skin editor you can change the colours of the tooltip text and the rectangle.
And there's more...
Please find attached complete projects using the 3D Floating Cursor.
There are four projects
Float Arrows,
Float Cursor this is the component
Float Ring
Float Spinner
Looking at the Float Ring, this is the component modified with two more copies of the rectangle with the ID ring,
This is achieved by stacking the rectangles on top of each other with the middle rectangle change to black.
In each of the ring elements, there is CSS in the CSS Styles text field.
The top ring has:
Code: Select all
transform:translate3d(0px,0px,2px);
The black ring has:
Code: Select all
transform:translate3d(0px,0px,0px);
The last ring, ring_white_bottom, has:
Code: Select all
transform:translate3d(0px,0px,-2px);
This represents the height of the rings in the 3D spade, so 2px is on top, 0px in the middle and -2px below.
The next project of interest is the Float Spinner.
This uses CSS to rotate the spinner_0 (Over State) and spinner_ds (Drop Shadow)SVGs.
The top SVG, spinner also has CSS in its CSS Styles text field:
Code: Select all
transform:translate3d(0px,0px,0px);
The next two are what is shown on Mouseover a Polygon Hotspot with a title.
Again these use visible logic blocks that are detecting if the Polygon hotspot has a title.
If it does, the element spinner hides, and the elements spinner_o and spinner_ds will show.
The element spinner_0 has the CSS set to:
Code: Select all
transform:translate3d(0px,0px,10px);
The spinner_ds, drop shadow has its CSS set to:
Code: Select all
transform:translate3d(0px,0px,0px);
To make the SVG's spinner_o and spinner_ds rotate add the following CSS to the CSS Styles Inner Element:
Code: Select all
animation: rotation 2s infinite linear;
Code: Select all
Stylesheet:
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
So it looks like this:
The images can be replaced with anything you like, as an example, there is a Float Arrow project.
Regards,