Hi.
Auto image scaling grabs the wrong image - at least that's what I experienced here. Following setting.
Project properties
> Scale mode: Fit Height
> Logical Dimensions: 640x960
> Orientation: Portrait
The dummy image exists as
dummy.png
> 80x80
dummy@0.5x.png
> 40x40
dummy@2x.png
> 160x160
Images are added to the project.
In the code the image is created via:
local texture = Texture.new("dummy.png")
local region = TextureRegion.new(texture, 0, 0, 80, 80)
local image = Bitmap.new(region)
Gideros player settings are set to 320x480 (iPhone). And now ... the base version of the image is rendered (dummy.png). But why?! I expected it to be @0.5 version. When I then set player settings to 640x960 (iPhone Retina) the program renders the @0.5. This time I expected the base version to be rendered.
Who can enlighten me? Thanks a lot in advance for your help!
Greetings
Sebastian
Comments
https://www.dropbox.com/sh/bg1cm12qxiqe0jq/AAASSu7fEuACkTyX8U9i2syYa
I will try to test it out when I'll get to the laptop, thanks for providing the images
I've the same problem
In my case I eliminated @ half --> 0.5 when I chose Retina display on iPhone and I resolved this issue.
On the other hand... Apple will reject your project if you going to use "my_Image@0.5x.png" or "my_Image.png" for sample when logical dimension are 320x480 and you have enabled Retina Display on iPhone. (I say it for own experience)
2.10: iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution”. (See image attach)
-------------
In summary
-------------
First case: aligned with Guideline 2.10
+ Logical dimension are 320x480
+ Retina Display on iPhone
+ Add dummy@2x.png (80x80) ------> be careful!!!
+ Delete of your project "dummy@half.png" and "dummy.png" (more memory free and improve watchdog timer)
Second case: aligned with Guideline 2.10
+ Logical dimension are 640x960
+ Retina Display on iPhone
+ Add dummy.png (80x80) ----------> be careful!!!
+ Delete of your project "dummy@half.png" (more memory free and improve watchdog timer)
You will not have problems with Guideline 2.10
You can see it in this link too
http://giderosmobile.com/forum/discussion/comment/36774#Comment_36774
Likes: seppsepp
[-] Liasoft
-------
Step1:
-------
dummy_001.png (40x40)
dummy_002.png (40x40)
dummy_003.png (40x40)
dummy_004.png (40x40)
dummy_005.png (40x40)
you get it:
"dummy.text" and maybe dummy.png (64x256) ---> remember 2^n
-------
Step2:
-------
after you would have to do the following:
dummy_001.png (80x80)
dummy_002.png (80x80)
dummy_003.png (80x80)
dummy_004.png (80x80)
dummy_005.png (80x80)
you get it:
dummy@2x.text and maybe "dummy@2x.png" (128x512)---> remember 2^n
-------
Step3:
-------
In your project you would have to put the files that are in quotes ie:
"dummy.text" and "dummy@2x.png"
I hope I've helped you @seppsepp
Likes: seppsepp
[-] Liasoft