auto appearing hs object/text

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
MPW
Posts: 62
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

auto appearing hs object/text

Post by MPW » Wed Aug 29, 2018 9:13 am

Hi there,
I want to insert a nonvisible hotspot, that automatically shows a joining object (text) when entering a defined screen-area (e.g. center part) and hides it when leaving: means: you turn the pano and when the coffeetable is within the center region a text appears saying "want a coffee? Or two?". When the coffeetable leaves the center the text dissolves.
Thought of hotspot action with mouse over and adding a centerposition square (vis 0,0001) with init: generate Mouseover (which doesn´t exist unfortunately). When the hotspot enters the square...you know. :?
Is someone having a workaround for this?
I really would appreciate!

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

Re: auto appearing hs object/text

Post by Hopki » Wed Aug 29, 2018 12:19 pm

HI MPW,
In Pano2VR 5 and on you can add an Alpha logic block.
You set the Hotspot to Alpha 0.00.
Then set a Pan value between the width of the table, example 90 to 110.
The set the logic block to:
Pan >= 90 AND
Pan < = 110
Alpha 1.00
Transition Time 1.00

As you rotate the panorama when you are between 90 and 110 degrees the hotspot will fade in and fad out when leaving.
Regards,
Hopki

MPW
Posts: 62
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

Re: auto appearing hs object/text

Post by MPW » Wed Aug 29, 2018 1:01 pm

Thank you, wonderful.
Was aware of alphablocks, but not in this combination.

I connected a svg to the hotspot, activated the smooth transition ( 3 sec) but the popup happened at once.

Is it because of the svg?

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

Re: auto appearing hs object/text

Post by Hopki » Wed Aug 29, 2018 4:56 pm

Hummmm, should not cause a problem.
If you have any other logic blocked set then they must also have transitions.
If your still getting problems can you post your skin?
Regards,
Hopki

MPW
Posts: 62
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

Re: auto appearing hs object/text

Post by MPW » Wed Aug 29, 2018 5:22 pm

Yes, I still have the problem.
I reduced the skin just to the hotspots.
Hottext_cr appears between -20 and 20, but no smooth transition.
Any idea.
Skin attached...
Attachments
popup_transitiontest.ggsk
(13.22 KiB) Downloaded 11 times

MPW
Posts: 62
Joined: Wed Mar 06, 2013 4:22 pm
Location: Germany

Re: auto appearing hs object/text

Post by MPW » Wed Aug 29, 2018 5:56 pm

Oh,
just found it.
I attached the alphablock to the hotspot element without success.
Now I changed it: hotspot always visible and the svg, coming within the hotspot, now with the alphablock.
Now it´s working.
Sorry, didn´t thought of before.

So, thanks again for the idea.

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

Re: auto appearing hs object/text

Post by Hopki » Thu Aug 30, 2018 1:59 pm

Just glad you got it working.
Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests