PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Different outputs on PC and iPhone

Hi! During the last few days I've realized that I'm getting different rendering outputs of the game when comparing the PC and iPhone versions. More precisely, I'm getting some "pinkish" pixels in the iPhone version that are not present in the PC build (this assets in particular are also used in the PocketPC QVGA version, and I'm not getting "pinkish" pixels there either).

I've prepared two workspaces (one from XCode and the other one from Visual Studio Express 2005) that reproduces my current situation. Although the code and assets are duplicated for each workspace, they are the exact same files. I've renamed the png files to "pnh" so that XCode doesn't reduce its quality before putting them on the application bundle.

Any suggestion about how to solve this would be really appreciated :)

Thanks in advance for your help!

--Nacho
Attachments:
Screenshots.rar (266 KB)
RotatedDiscs-iPhone.rar (145 KB)
RotatedDiscs-Win.rar (179 KB)
Hi Nacho,

After checking your images with photoshop, it seems you're using pink shades (it probably happened after rescaling your images with anti-aliasing). We recommend scaling down your images on a black background, and then change it to pink again.

When you're transferring your game to OpenGL, it's even better to make it a transparent PNG and upload it as an RGBA texture.
Hi edge,

Thanks for your prompt reply. I'm aware of those pink shades, but the artist couldn't get rid of them so that's why we came up with the idea of putting the edges.png file on top of them in order to hide them. Do you know why am I getting those pink shades in the iPhone build but not in the Windows one?

--Nacho
Hi Nacho,

Your images are fine, perhaps they are not loaded or drawn correctly. Can you tell me if you're using an RGBA surface for the edges.png file?

Another thing you can test, is to set config->emulvideotype to EDSP_TRUE16 and check if you see the pink pixels.
Hi edge,

Thanks for your reply. I've tried the flag you suggested and the output seems to have improved. The edges.png file is loaded as an RGBA surface, yes.

Which flag do you suggest me to use for iPhone when also using OpenGL ES? Is it convenient to use EDSP_TRUE32_INV?

--Nacho
Hi Nacho,

For RGBA surfaces pass the EST_DSPTRUE32_INV flag to CreateSurface, for normal surfaces use EST_DSPTRUE24_INV. This will make the images in the same format as OpenGL when uploading (and speeds up your loading times).
Got it. Thanks for the tip. Now, which value should I assign to config->emulvideotype and config->videotype inside ClassMain::OnDisplayConfig?

--Nacho
Hi Nacho,

It's best to leave the videotype and emulvideotype to their defaults. Pass EST_DSPTRUExxx flags with CreateSurface instead.
Got it, thanks.

--Nacho