Fade in/out 3d hotspot

Q&A about the latest versions
Post Reply
SAwity
Posts: 32
Joined: Fri Sep 07, 2018 9:38 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: 108
Joined: Mon Aug 20, 2012 3:01 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: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
christoph
Gnome
Posts: 108
Joined: Mon Aug 20, 2012 3:01 pm

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: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
christoph
Gnome
Posts: 108
Joined: Mon Aug 20, 2012 3:01 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: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

I think maybe that a hotspot can’t do transitions.
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
christoph
Gnome
Posts: 108
Joined: Mon Aug 20, 2012 3:01 pm

Yes, my image is child of the hotspot template....
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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 184 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
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Tony,
Can you send me your project?
Regards,
Hopki
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
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
CWabner
Posts: 13
Joined: Mon May 24, 2021 12:16 pm

Hi there together, i found your Post from 2019, two an a half year later i have a question related to this you wrote "I use a Node ID to make sure they only fade in for the correct node." I use this way to blend my hotspots in & out, everything works fine - happy, - but now (still working on a project with many nodes) i don´t want to determine each of them manually - i would like to let the nodes/hotspots appear, if they are in the center of the users screen. (+ - 20°) Do you think it´s possible to grab the center position of the screen an put before => and after <= ??
Would be great to get some help :D
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
In V6 this is how you do it, but in the next major release, there will be a better way.
We are still in development with no confirmed release dates for V7.
Regards,
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/
Post Reply