Scalable SVG

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
PLaine
Posts: 59
Joined: Thu Jun 15, 2017 3:56 pm

Hi,

I have a flat pano (a country map) on which I put regions hotspots with svg files (with "rollover" and "selected" effects) but I can't make them match when resizing the window. I've tried all (I think) but either the svg doesn't resize, or it doesn't match exactly the position with the map. What is the right hotspot, with which parameters? Is there an example to follow with?

Thanks

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

Hi Philippe,
You can use Modifiers to change the scale of the hotspot with FoV (zoom)
Use Target: Scale
Source: 1/tan(FoV)
Factor: 1.000
Offset: 0.0

Use the offset to adjust initial size.
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/
PLaine
Posts: 59
Joined: Thu Jun 15, 2017 3:56 pm

Hi Hopki,

Thanks for your response.
The result is that if I resize the window horizontally, the svg keeps the approximately the right size, and if I resize down the window vertically, the svg grows up !...and If I resize the window and keep the ratio L/H, the svg resizes down. Very difficult to understand this behaviour !

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

Hi Philippe,
Yeah, looking further into this, works fine on a 360 but as you say not good for a flat image.
Probably looks better without it.
Ill add a note to the developers.
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/
Post Reply