Corona simulator color problem?

Did not know what board to post this, so I posted it on both the Game Development board and here

I just created a random background to demonstrate… Look at the difference… The one on the left is from the Corona Simulator and the one on the right is the one I made on Photoshop, look what Corona does to the color… Can this be solved somehow? Because everything I do Corona converts it to something dull?

http://img690.imageshack.us/i/comparisonj.png/ [import]uid: 14018 topic_id: 5445 reply_id: 305445[/import]

There will be many reasons why this could be happening but be careful of the color profile you are using in Photoshop. This can make the photoshop file look different as Photoshop is altering how the colours are displayed on screen to make them match the profile, ie a print destination.

Use fireworks if you can as it doesnt suffer from that problem but if not use a standard rgb colourspace. [import]uid: 5354 topic_id: 5445 reply_id: 18264[/import]

in Photoshop I use these settings:

Resolution: 72px/inch
Color Mode: RGB Color 8 bit

They worked fine with GameSalad? [import]uid: 14018 topic_id: 5445 reply_id: 18273[/import]

Under view - proof setup - what you running there?

Its should also be RGB or sRGB. Also how are you saving the images, I would recommend using the save for web options as Photoshop will strip out the extra colour information that wont be used.

Im not sure what gamesalad did but this is Photoshop and your setup on being pure RGB.

As another not, gradients are hard things to get right, most devices cant render the same amount of colours as your device so gradients can look stripy. I would either dither them or use Fireworks CS5 as it will generate a colour safe gradient. [import]uid: 5354 topic_id: 5445 reply_id: 18278[/import]

My proof setup was on CMYK, changed it on sRGB now but it didn’t help, also tried regular RBG but it didn’t work either… Saving it as web image didn’t help either… Sadly I don’t own a copy of Fireworks CS5 so I can’t use that one this is driving me crazy… [import]uid: 14018 topic_id: 5445 reply_id: 18280[/import]

The output wont change, never mind the colour space you are using. The problem is that you may be speccing the colours wrong in Photoshop, so what looks right in Photoshop is not a real representation of the output to an RGB file (as Photoshop could be altering colours on screen to get a colour effect)

You could try upping the colours in the photoshop file, to see what you get.

In the colours panel, click the arrow and make sure its on an RGB colour spectrum.

In File > Edit > Colour Settings - Lock it to an RBG profile for the working RGB space ( or sRGB )

Its also possible that the actual screen of the iPhone wont represent the colour as it is on screen. Ive seen that in the past, the 3G, 3GS and iPhone 4 screens all show the same colour as slightly different. The 3G has a blueish tint the 3GS didnt.

The compression of textures into opengl memory could also be having an effect but not one ive noticed. [import]uid: 5354 topic_id: 5445 reply_id: 18285[/import]

I really appreciate the help! I tested everything you suggested, and it all seems to be on RGB already… Yet all images I save either become blurry or in bad color quality…

I just tested inserting the same images to GameSalad and they look completely fine there… The problem seems to be in Corona… Maybe there’s a code I need to add to config.lua or something? [import]uid: 14018 topic_id: 5445 reply_id: 18293[/import]

If you can zip up and email me the original psd files and a corona test case I will have a look in a couple of hours when I get home.

matt@mattrpingle.co.uk [import]uid: 5354 topic_id: 5445 reply_id: 18294[/import]

Emailed all the files. Thanks! [import]uid: 14018 topic_id: 5445 reply_id: 18306[/import]

Does anyone have a solution to this??? The problem still remains… The pictures look fine in GameSalad and all the other ImageViewing apps on the mac… It only looks dull in Corona … . And it doesn’t matter what image I load up to Corona it looks weird here’s another example I made:

http://img62.imageshack.us/i/qualitycomparison.png/

The image to the right is from the Corona Simulator, you can see how much worse the quality is than the original image. This happens with everything… [import]uid: 14018 topic_id: 5445 reply_id: 18347[/import]

The quality problem, you need to load images with even resolutions or everything is rendered to the 1/2 pixel and can look blurry

That obviously wont help with the colour issue though. [import]uid: 5354 topic_id: 5445 reply_id: 18353[/import]

Also what computer / setup are you using? Also what version of OSX are you running?

For instance a GMA X3100 will fall back to the software renderer if it doesnt support some of the requested features of the application running opengl. [import]uid: 5354 topic_id: 5445 reply_id: 18356[/import]

Ahh is there’s a resolution limit here in Corona too? In GameSalad it was 72, everything beyond 72 looked blurry. That’s why I create all images in a res of 72px/inch. Maybe there’s a limit here too

Using Mac OS X v10.6.6 on a regular MacBook. I think it’s neither Pro nor Air, it’s that thick MacBook
Computer specifics:
Processor: 2.4GHz Intel Core 2 Duo
Memory: 2 GB 1067 MHz DDR3 [import]uid: 14018 topic_id: 5445 reply_id: 18359[/import]

The blurriness is because you need images at even resolutions. Like 100px x 50px, if its an odd number like 101px x 51px it will look blurry because each pixel of the image is then rendered over 2 half pixels. Its to do with reference points and other stuff but keep the images at even resolutions.

In terms of max image size on a 3GS and 4 you can go to 2048x2048, on a 3G 1024x1024. Thats a hardware limit. You can obviously load multiple large textures and split with the sprite api.

Look at the content scaling for different dpi settings ( where it loads a higher resolution image if the screen is higher resolution )

Laptop sounds ok although it does have the older GMA X3100 I believe so it could be a graphics card limitation. Especially as it all looked great on mine and we have figured out its not Photoshop. [import]uid: 5354 topic_id: 5445 reply_id: 18363[/import]

Ahhh thanks, the image was indeed not in even resolution. That solved it!

The second problem though… I’ll buy the apple license tomorrow and check the graphics on my iPhone [import]uid: 14018 topic_id: 5445 reply_id: 18378[/import]

Edit: The colors are great on the iPhone :slight_smile: Must be my computer… Thanks for all your help Matt! [import]uid: 14018 topic_id: 5445 reply_id: 18628[/import]

Excellent! [import]uid: 5354 topic_id: 5445 reply_id: 18629[/import]

Does anyone have a solution to this issue? The Corona simulator and my iPhone both display bad colors compared to the image I created with Photoshop. I tested it in GameSalad and the image is fine. [import]uid: 30185 topic_id: 5445 reply_id: 20044[/import]

Hi, I replied to your support email regarding this issue. Let’s investigate further offline for now.

Tim [import]uid: 8196 topic_id: 5445 reply_id: 20409[/import]