Object in Panorama

Post Reply
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Been asked about how to embed an Object2VR popup in an HTML5 Panorama project.
The attached zip does just that with a point hotspot and a poly hotspot.

Please note you will require Pano2VR 4.x and Object2VR 3.x beta only because the object is HTML5 multi resolution, otherwise version 2.x will be fine.

Once unzipped open the folder forum_oip and open the p2vr file.
Click the Create All button to build the panorama in the default output folder.

Now open the sub folder object and then open the o2vr file and click the Create All button.
The output path is: ../output/object/soft_toy.xml for the XML and ../output/object/Soft Toy.html for the HTML Page.
This means it will create the object in a sub folder called object in the panoramas output folder.

Please note that because the objects output is a level above the project file it will not open from the projects open output button.

Go back to the p2vr file and click the open output button to see the panorama. You will see two soft toys, one is a point hotspot and the other is an image placed in the panorama using the patch tool then a poly hotspot drawn around it. Clicking either will open the Object2VR popup. The Object can also be a multi resolution project, that said the object in this project is a multi resolution project although its not a high res image.

Point Hotspot:
The point hotspot has the HTML file name in the hotspots title field. In this example the HTML page produced from Object2VR is called Soft Toy.html. The point hotspots title is Soft Toy. The hotspot template has the iframe code with the place holder $hs.html. So this means the data written will be Soft Toy.html so pointing to the correct file. This means each point hotspot can have a different object.

Poly Hotspot:
The Poly hotspot just uses a node marker in the skin with all the actions to show an object link using Hotspot Proxy ID.
This means you will need to add a node marker for each object. You can use the same trick as the point hotspot using the place holder. However I have found that the iPad does not use the place holder in the poly hotspot so that is why the node marker has the complete file path. In the future this may work but for now you need a node marker per object.

Regards,
Hopki
Attachments
forum_oip.zip
(2.94 MiB) Downloaded 1261 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Thank you Sir.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
Post Reply