Fade in/out 3d hotspot

Q&A about the latest versions
Post Reply
SAwity
Posts: 8
Joined: Fri Sep 07, 2018 9:38 am

Fade in/out 3d hotspot

Post by SAwity » Tue Mar 05, 2019 11:33 am

Hello Pano2VR fam,

Anyone how this effect on the 3d hotspot was created? It fades in when its in the centre of the screen and fades out when it leaves. https://www.okijk.nl/projecten/museon/illusions/

Thanks for the help in advance

christoph
Gnome
Posts: 88
Joined: Mon Aug 20, 2012 3:01 pm

Re: Fade in/out 3d hotspot

Post by christoph » Tue Mar 05, 2019 3:44 pm

Hi!
You can do this with a logic block in the alpha property of the hotspot.
Set the alpha to 0.000.
Now click the 'Logic Block' button.
Add one expression: Pan > 10 and Pan < 20, Visible: true
Also, enable Transition, at the bottom of the logic block dialog.

Now your hotspot should only be visible between when the pan values are between 10 and 20 (fading in and out)...

Regards,
Christoph

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Tue Mar 05, 2019 11:10 pm

Hi Christoph,

I tried that but no transition just on or off even though the transition is enabled for 2 seconds.

Do you mean 'Add one expression: Pan > 10 and Pan < 20, Visible: true' in the logic block for Alpha there is no Visible option just Alpha: 1.000 or whatever setting you want.

Using Version 6.1

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

christoph
Gnome
Posts: 88
Joined: Mon Aug 20, 2012 3:01 pm

Re: Fade in/out 3d hotspot

Post by christoph » Wed Mar 06, 2019 7:58 am

Hi Tony!
Sorry, yes, i meant alpha.
Of course visibility is only on or off, so there can be no transition.
So to make it work, you set alpha to 0 (while leaving visibility on), then add the logic block to the alpha property, where you set alpha to 1, using the expression for the pan values.
And in that logic block, you can set a transition time....

Regards,
Christoph

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Wed Mar 06, 2019 9:15 am

Yes tried that but no transition just on and off. Changing transition time had no effect. Tried it on some earlier versions same effect on/off no fafes.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

christoph
Gnome
Posts: 88
Joined: Mon Aug 20, 2012 3:01 pm

Re: Fade in/out 3d hotspot

Post by christoph » Wed Mar 06, 2019 1:39 pm

Hi Tony!
You are right. I now assigned that logic block to the image, not the hotspot, then it works.
Don't know why this is, i have to look into this...

Regards,
Christoph

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Wed Mar 06, 2019 2:02 pm

I think maybe that a hotspot can’t do transitions.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Thu Mar 07, 2019 12:08 pm

Hi Christoph,

Tried your suggestion and added the logic block to the image but I still can't get it fade out. Is your image a child of the Hotspot Template? Do you have a skin sample you can upload?


Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

christoph
Gnome
Posts: 88
Joined: Mon Aug 20, 2012 3:01 pm

Re: Fade in/out 3d hotspot

Post by christoph » Thu Mar 07, 2019 3:13 pm

Yes, my image is child of the hotspot template....

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

Re: Fade in/out 3d hotspot

Post by Hopki » Thu Mar 07, 2019 9:39 pm

Hi Tony,
Please find attached a working project with a hotspots that fades in when you rotate the panoramas to north.

In the Hotspot image there is a alpha logic block with the data:
node1 AND
Pan > 96.53 AND
Pan <135.74
Alpha 1.00

node2 AND
Pan < -65.00 AND
Pan > -26.16
Alpha 1.00

I use a Node ID to make sure they only fade in for the correct node.

To set this up I switched to viewing parameters and used the grid to get the start and end points where I want the hotspot to show and hide.
Regards,
Hopki
Attachments
hotspot_fade.zip
(26.72 KiB) Downloaded 4 times

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Thu Mar 07, 2019 11:39 pm

Hi,

Really weird. If I add my image to your project it works. If I try to build a new project to match yours it doesn't work. Driving me crazy :roll:

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

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

Re: Fade in/out 3d hotspot

Post by Hopki » Fri Mar 08, 2019 12:47 pm

Hi Tony,
Can you send me your project?
Regards,
Hopki

User avatar
Tony
Posts: 649
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Fade in/out 3d hotspot

Post by Tony » Fri Mar 08, 2019 10:04 pm

Hi Hopki,

It's okay I just think I got a bit confused when setting the greater than/less than spread and I was affecting an area different to one where the image is placed.

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests