Scalable SVG

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

Scalable SVG

Post by PLaine » Fri Mar 30, 2018 11:08 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: 9082
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Scalable SVG

Post by Hopki » Tue Apr 03, 2018 10:36 pm

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

PLaine
Posts: 35
Joined: Thu Jun 15, 2017 3:56 pm

Re: Scalable SVG

Post by PLaine » Wed Apr 04, 2018 11:39 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: 9082
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Scalable SVG

Post by Hopki » Thu Apr 05, 2018 12:49 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests