Proportional logo or picture depending on screen size

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
the_b
Posts: 55
Joined: Wed Jan 14, 2009 7:58 pm

Hallo,

I´m asking me if it is posible to set a picture as a logo fixed in x=0 y=0 with a size of i.e. 100px x 100px when the tour is displayed at a computer monitor. But if someone watch the tour on tablet or even smartphone the logo is now to big and should be smaller consistent to the whole tour.
Is there any solution for this?
Thanks for help!
Bert
User avatar
Hopki
Gnome
Posts: 13015
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Bert,
Not at the moment however this will be addressed in the next version due out next year, date to be advised.
For now you could set your project to prefer Flash and have the larger logo in a flash skin.
Then in the HTML 5 output have the smaller skin, this is on the understanding that computers have Flash where mobile devices mainly use HTML5.
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/
the_b
Posts: 55
Joined: Wed Jan 14, 2009 7:58 pm

Thank you, Hopki, for your fast answer!!!
marcolodovichi
Posts: 14
Joined: Thu Jan 21, 2016 1:51 pm

Hi Martin, any updates for this question about the responsive logo on skin?
Thanks Marco
CBosch
Posts: 240
Joined: Fri May 23, 2014 11:52 am

Hi,

without having it checked - why don't you size the logo in % (not the position)?
Have a nice day

Christian
Mdholl
Posts: 158
Joined: Sat May 09, 2009 11:43 am

Hello, gnomes, Mr. Hopki :)
I need this feature too...
Is there any way to get it now? I can carry some programming :)
CBosch
Posts: 240
Joined: Fri May 23, 2014 11:52 am

In V5 you can use the scale-logic. If window <= 400 set x and y to 0,5. Or any value you want and window-sizes as needed.
Bildschirmfoto 2016-03-06 um 18.23.21.png
Bildschirmfoto 2016-03-06 um 18.23.21.png (98.87 KiB) Viewed 20849 times
Have a nice day

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

Hi Mqdholl,
Now version 5 is out you can do this in several ways.
But the quickest by far is use scaling.
The attached project has a 200 x 100 logo anchored top left of the window.

If you open the skin with version 5.x.x and look at the logo you will note that under Appearance the scaling anchor is also set for top left.
Then under scaling there is an active logic block.

You will see there is two logic blocks set, the first is looking at player width which is less than or equal to 960px AND is more than 320px. If so then scale the image to X: 0.5, Y: 0.5 (50% smaller)

The second is simple, if the player is equal to or less than 320px then scale to X: 0.3, Y: 0.3
Regards,
Hopki
Attachments
logo.zip
(870.36 KiB) Downloaded 621 times
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/
Mdholl
Posts: 158
Joined: Sat May 09, 2009 11:43 am

Thanks! Bought it :)
andrewj
Posts: 4
Joined: Fri Jul 10, 2020 9:52 am
Location: The Netherlands/Spain

Hi guys, I downloaded the project, looked at the settings, applied the same to my logo but it does not scale.

This is what is see:
Screenshot 2020-07-29 19.15.43.jpg
Screenshot 2020-07-29 19.15.43.jpg (748.38 KiB) Viewed 18216 times
IMG_5099.png
IMG_5099.png (7.62 MiB) Viewed 18216 times
and these are my settings:
Screenshot 2020-07-29 20.03.48.jpg
Screenshot 2020-07-29 20.03.48.jpg (356.6 KiB) Viewed 18216 times
User avatar
Hopki
Gnome
Posts: 13015
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Can you post your skin?
Regards,
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