Overview
This “Little Bits” tutorial show you how to add an image thumbnail to the Image Popup component.
Note: this tutorial is designed for Pano2VR V6.1.2. As “Little Bits” tutorials don’t go into detail about Pano2VR operations a working knowledge of Pano2VR is an advantage.
Final Output
Note: when you mouse over the hotspot icon the tooltip and image thumbnail appear. Clicking on the hotspot opens the large image.
Tutorial Files
In the tutorial folder, Image Thumbspot, there is an Asset Folder with 2 images, thmb_papua.jpg and lg_papua.jpg and an equirectangular image. There is also a Project folder with a Pano2VR project 'image_thumb.p2vr', a skin 'image_thumb.ggsk' and an Output Folder called 'image_thumb' with project files created from the .p2vr and .ggsk elements. (Figure #1)
Project Overview
In this tutorial we will modify the imagethumb.p2vr project file and the imagethumb.ggsk skin by;
adding external files to the project
add the image popup component to the skin
modify the ht_image element to include a thumbnail preview
Note: this tutorial assumes a basic knowledge of Pano2VR V6
Note: click on any image in the tutorial to enlarge it
Project
1. Download the zipped tutorial folder here
2. In the Project folder open the project file ‘image_thumb.p2vr’ (Figure #2)
Note: the first step is to load our thumbnail and large image into the project.
3. From the Output menu scroll down to the Advanced tab
4. Open the ‘Advanced’ tab, scroll down to Assets section and click on ‘Add Files’ (Figure #2)
3. Navigate to the Assets folder in the Tutorial folder, shift click the two image files and select Open. The files are added to the Asset list. (Figure #4)
Note: when you next publish the project the Assets folder will be created and the files copied into it.
5. Save and re-output the project
6. The image_thumb output folder now contains an Assets folder with two images in it. (Figure #6)
7. Add a hotspot to the panorama and set it’s type as ‘Image’. Add a Title: popup thumbnail and click on the ‘Link Target URL’ folder icon.
8. Navigate to the assets folder in the tutorial output folder image_thumb, select the lg_papua.jpg image and click Open. (Figure #7)
9. Save the project.
The Skin
1. Click on the ‘Edit Skin’ button to open the skin
2. Click on the ‘Components Toolbox’ icon in the menu bar to open the toolbox
3. Locate the ‘Image Popup Simplex’ component in the 'Built-In’ category (Figure #8)
4. Double click on the component to add it to the skin and Close the Component Toolbox (Figure #9)
5. Save the Skin
6. Re-output the project
Note: now you see the hotspot icon and when you mouse over the hotspot you see the text tooltip. Clicking on the hotspot opens the image. Now we will add the thumbnail image.
7. Click on the ‘eye’ symbol next to the tree elements; image_popup_close, image_popup and screentint_image to hide them in the canvas.
8. Click on the arrow next to the ht_image element to show the child elements within it.
9. Select the ht_image_CustomImage to make it active and set the following Properties:
Position:
Position: X: = 0px, Y: = -75px
Size: Width: & Height: = 100px
Appearance:
Visible: Unchecked
Visible: Logic Block change to: Trigger = Mouse Over Parent | Comparison = | Value = true | Visible = true (Figure #10)
External Image:
External URL: = assets/thmb_papua.jpg (Figure #11)
10. Save and Close the skin
11. Re-output the project and now you have a thumbnail preview on Mouseover
Summary
I hope you have enjoyed the tutorial and it has helped you to achieve the best possible project outcome. If it has please take a second to consider a donation so that I can continue to add more tutorials.