Proportional logo or picture depending on screen size

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

Proportional logo or picture depending on screen size

Post by the_b » Mon Nov 17, 2014 2:44 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: 9653
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Proportional logo or picture depending on screen size

Post by Hopki » Mon Nov 17, 2014 4:23 pm

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

the_b
Posts: 47
Joined: Wed Jan 14, 2009 7:58 pm

Re: Proportional logo or picture depending on screen size

Post by the_b » Tue Nov 18, 2014 11:21 am

Thank you, Hopki, for your fast answer!!!

marcolodovichi
Posts: 14
Joined: Thu Jan 21, 2016 1:51 pm

Re: Proportional logo or picture depending on screen size

Post by marcolodovichi » Wed Feb 10, 2016 10:22 am

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

Re: Proportional logo or picture depending on screen size

Post by CBosch » Wed Feb 10, 2016 10:30 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

Re: Proportional logo or picture depending on screen size

Post by Mdholl » Sun Mar 06, 2016 1:24 pm

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

Re: Proportional logo or picture depending on screen size

Post by CBosch » Sun Mar 06, 2016 6:25 pm

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 2236 times
Have a nice day

Christian

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

Re: Proportional logo or picture depending on screen size

Post by Hopki » Sun Mar 06, 2016 6:47 pm

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 96 times

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

Re: Proportional logo or picture depending on screen size

Post by Mdholl » Mon Mar 07, 2016 4:20 pm

Thanks! Bought it :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests