Page 1 of 1

Fade in/out 3d hotspot

Posted: Tue Mar 05, 2019 11:33 am
by SAwity
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

Re: Fade in/out 3d hotspot

Posted: Tue Mar 05, 2019 3:44 pm
by christoph
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

Re: Fade in/out 3d hotspot

Posted: Tue Mar 05, 2019 11:10 pm
by Tony
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

Re: Fade in/out 3d hotspot

Posted: Wed Mar 06, 2019 7:58 am
by christoph
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

Re: Fade in/out 3d hotspot

Posted: Wed Mar 06, 2019 9:15 am
by Tony
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.

Re: Fade in/out 3d hotspot

Posted: Wed Mar 06, 2019 1:39 pm
by christoph
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

Re: Fade in/out 3d hotspot

Posted: Wed Mar 06, 2019 2:02 pm
by Tony
I think maybe that a hotspot can’t do transitions.

Re: Fade in/out 3d hotspot

Posted: Thu Mar 07, 2019 12:08 pm
by Tony
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

Re: Fade in/out 3d hotspot

Posted: Thu Mar 07, 2019 3:13 pm
by christoph
Yes, my image is child of the hotspot template....

Re: Fade in/out 3d hotspot

Posted: Thu Mar 07, 2019 9:39 pm
by Hopki
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

Re: Fade in/out 3d hotspot

Posted: Thu Mar 07, 2019 11:39 pm
by Tony
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

Re: Fade in/out 3d hotspot

Posted: Fri Mar 08, 2019 12:47 pm
by Hopki
Hi Tony,
Can you send me your project?
Regards,
Hopki

Re: Fade in/out 3d hotspot

Posted: Fri Mar 08, 2019 10:04 pm
by Tony
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

Re: Fade in/out 3d hotspot 2021

Posted: Sat Nov 06, 2021 11:48 pm
by CWabner
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

Re: Fade in/out 3d hotspot

Posted: Mon Nov 08, 2021 10:53 am
by Hopki
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,