Action Source to trigger Visibility Media when in View?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Carlos Chegado
Posts: 39
Joined: Wed Feb 14, 2007 7:11 pm

Sun Aug 23, 2020 2:43 am

G'Day,

I would like to have an action trigger "Visibility Media" when an element is centered on the screen or close enough like when something is "In Focus".

I can trigger this using other options such as Mouse Clicks, Mouse Overs, etc, but I want this to happen when the element is front and center to the user and just by having the user pan around the screen until it is in "focus".

What would be the best way to achieve this?

Looked at all Action Sources to trigger this and can't find one that will do the trick.

Any ideas?

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

Sun Aug 23, 2020 8:38 am

Hi Carlos,

You need to use the pan angle in a logic block to set the visibility. Here's a post by Hopki:

viewtopic.php?f=13&t=13699

You can also see how you use pan/tilt to changing color and size in my tutorial:

https://tonyredhead.com/pano2vr-little- ... e-pan-tilt

You can also see it in this project that I built the skin for:

https://the-outlook.s3-ap-southeast-2.a ... index.html

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
Carlos Chegado
Posts: 39
Joined: Wed Feb 14, 2007 7:11 pm

Sun Aug 23, 2020 9:49 am

Hi Tony,

Yes, I can use the Pan as the trigger, but I was trying to avoid having to define a value for each Hotspot.

I'm actually trying to trigger Visibility on several Polygon Hotspots without having to define a Pan range for each Polygon Hotspot.

What would be really useful would be to have a function like "Focus" or whatever the Gnomes want to call it, that basically would trigger a Polygon Hotspot to make it Visible when it's in the center of the screen. That function doesn't exist right now apparently, but it is greatly needed.

I can achieve that with Pan, and I guess it is what I'll end up doing as it doesn't look like a workaround is available, but that means I'll have to define a Pan range for each Polygon Hotspot in the Skin!

But anyway, much appreciated by your prompt reply and it's great to have you pointing out there's a way to do it regardless.

Cheers Mate.
User avatar
Tony
Posts: 989
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Sun Aug 23, 2020 10:54 am

Hi Carlos,

Hopki has indicated that a more streamlined method of implementing this type of function will be part of Version 7.

cheers,

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