Sie sind nicht angemeldet.

  • »officinepanottiche« ist der Autor dieses Themas

Beiträge: 130

Wohnort: Venezia

Beruf: interactive pictures

  • Nachricht senden

1

Montag, 23. Juni 2014, 10:12

Retina different rendering problems

Till now I always coded my interfaces this way:
I considered a retina screen as half its actual pixels, giving all interface positions the same number of pixels as it was let's say (ipad) a 1024x768 screen, but throwing in all png images as downscaled 0.5%. I mean, the button that should appear 40pixel on a 1024, needs to be a 80pixel png, so the retina will show it in all its definition. A 40pixel button will be upscaled.

Iphone 5 is behaving differently, images in there are like it was a 1136 x 640 actual screen. It was not doing this 3 months ago... ??!?!?! HELP.

Cannot publish the link right now without customer's approval...

2

Montag, 23. Juni 2014, 13:17

Hi,

that's not related to 'retina' or 'not retina' - that's the default stagescale on mobile devices.

Here an example about what stagescale is and what is does:
http://krpano.com/examples/117/examples/…scale-test.html

If you don't care about older Android browsers you could simple add this line anywhere in the xml to have the same scaling as on desktop and tablets also on mobile devices:

Quellcode

1
<krpano stagescale="1.0" devices="mobile />


Btw - regarding to 'It was not doing this 3 months ago' - this behavior is there since the first krpano html5 viewer version and hasn't changed.

Best regards,
Klaus

  • »officinepanottiche« ist der Autor dieses Themas

Beiträge: 130

Wohnort: Venezia

Beruf: interactive pictures

  • Nachricht senden

3

Dienstag, 24. Juni 2014, 11:31

...!
It is exactely what I needed!!
And I never ever encountered stagescale... and it was there all the time!!!!
*cry* *cry* *cry* *cry*
3 months ago I was not testing things on iphone5...I thought all retinas would do the same (ipad behaves as it should).
I'm understanding this device.pixelratio right now. I will do a lot of experiments in order to make it clear to me.
THANK YOU Klaus. You saved me once again. *g* *g* *g*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »officinepanottiche« (24. Juni 2014, 16:11)