Page 1 of 1

Scalable SVG

Posted: Fri Mar 30, 2018 11:08 pm
by PLaine
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

Re: Scalable SVG

Posted: Tue Apr 03, 2018 10:36 pm
by Hopki
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

Re: Scalable SVG

Posted: Wed Apr 04, 2018 11:39 pm
by PLaine
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

Re: Scalable SVG

Posted: Thu Apr 05, 2018 12:49 pm
by Hopki
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