Lock aspect ratio on skin elements

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
sigurd.eliassen
Posts: 22
Joined: Mon Oct 06, 2014 2:16 pm

Hi,

I'm trying to create a skin that scales all objects based on the player window. That works fine as long as the window is 16:9 (which the project and skin is made in), but when the window is squeezed in one direction, the skin elements are squeezed as well. This will look strange on e.g. a 4:3 monitor.

If I set the element size in px, the skin is not very responsive at all. If I set the size in percent, it's responsive, but with the aspect ratio issue. Is there a way to lock the aspect ratio? I need the buttons to float in the bottom :)
Attachments
Skjermbilde 2016-09-15 20.39.39.png
Skjermbilde 2016-09-15 20.39.39.png (235.56 KiB) Viewed 3209 times
Skjermbilde 2016-09-15 20.38.59.png
Skjermbilde 2016-09-15 20.38.59.png (812.85 KiB) Viewed 3209 times
sigurd.eliassen
Posts: 22
Joined: Mon Oct 06, 2014 2:16 pm

Found this example of what I'm looking for; https://ggnome.com/samples/pano2vr_5/tower/

The cardboard and player icons are floating at the bottom, anchored at left - and right, at any size and aspect ratio. Any feedback on how to achieve this would be deeply appreciated.
s.kreuzer
Posts: 8
Joined: Fri Dec 16, 2016 2:21 pm

A bit late but i guess you have to use .svg files. They will keep their aspekt ratio while changing their size :)
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
I would use player width and scaling.
I would set up say three sizes depending on screen width then adjust the scale.
Have a look at this thread: viewtopic.php?f=22&t=11710#p48283
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