Visible Hotspot by Pan Angle

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Hopki
Gnome
Posts: 9448
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Visible Hotspot by Pan Angle

Post by Hopki » Thu May 23, 2019 8:33 pm

Hi,
Here is a three node project that uses an Alpha Logic block that uses Pan as the trigger to fade in the Point Hotspot when you have rotated the panorama to the desired position. Both the Hotspot Images are in a container, it is this container that has the Alpha Logic Block.

In my example, I have three nodes each expression is locked to a node.
Here you see the first node is between -22 and 22, so this is easy. I have also included a Node trigger so this will only happen in node1.

1.png
1.png (40.52 KiB) Viewed 759 times

This next one is a little more tricky as it is showing two hotspots for node2, but the back hotspot is between -157 and 157, so you can not use an And here. This is an extream case as most hotspots will be between either positive or negative numbers, for example, 10 to 30, -10 to -30.
As I am using an Or I must also include the NodeID before each of the Or statements, so Node And Pan Or Node And Pan.

The good news is you can select the conditions and copy and paste them into another expression.

2.png
2.png (68 KiB) Viewed 759 times

The last node, node3 just has the hotspot show to come back.

3.png
3.png (47.97 KiB) Viewed 759 times

This is actually very logical when you think about it.
And as a helper, I have added two text boxes, one to display the pan angles and the other the current node.

I will be writing up a feature request to make this easier as we know the pan and tilt of each hotspot it is just a case of being able to set a distance from it to show.

Further reading about Logic Blocks can be found HERE.

Regards,
Hopki
Attachments
show_with_pan.zip
(60.37 KiB) Downloaded 82 times

User avatar
IBCreative
Posts: 24
Joined: Tue Jun 13, 2017 12:55 pm
Location: Australia

Re: Visible Hotspot by Pan Angle

Post by IBCreative » Fri Jun 14, 2019 5:36 pm

Very clever 👏👏

xi4
Posts: 26
Joined: Mon Feb 04, 2019 10:00 am
Location: Украина
Contact:

Re: Visible Hotspot by Pan Angle

Post by xi4 » Mon Jun 17, 2019 7:33 pm

I understand that node is the number of the panorama? How to set another value? If I have 200 panoramas on a tour, then by number, this is not an option at all. If you did as in the screenshot, it does not work (
Attachments
Ошибка пано.png
Ошибка пано.png (203.88 KiB) Viewed 647 times

TheCat
Posts: 14
Joined: Tue Aug 13, 2019 10:34 pm

Re: Visible Hotspot by Pan Angle

Post by TheCat » Fri Aug 16, 2019 9:08 am

Guess you've found the solution already but for others who might stumble across: Just apply a title to your nodes and use $(ut) as trigger instead.

xi4
Posts: 26
Joined: Mon Feb 04, 2019 10:00 am
Location: Украина
Contact:

Re: Visible Hotspot by Pan Angle

Post by xi4 » Sat Aug 24, 2019 2:21 pm

Есть пример? Как это выглядит?

User avatar
360Texas
Moderator
Posts: 3343
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Re: Visible Hotspot by Pan Angle

Post by 360Texas » Sat Aug 24, 2019 5:43 pm

Google translator says:

Есть пример? Как это выглядит?

"There is an example of? How does it look?"
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests