I changed Simulator resolution to iPad Landscape (Configuration > Surface) but half top of the window is off the screen. Restarting configuration solve the problem but after changing resolution to iPad Landscape, I face this problem again.
Another problem: Quality of graphics displayed in simulator is lower than my original graphic. I don't have any device to test the quality on real tablet.
(See here: http://postimage.org/image/kr9g6tn29/) Any thought why this happen?












It looks like your texture has been colour reduced, probably down to RGB565 or ARGB1555
I tried PNG (24 bit with and without alpha channel), PNG (8 bit with and without alpha channel), BMP (non-indexed and indexed) but quality of all formats are lowered. Actually my code is very simple:
I create image outside. Here is a simple version. (I removed unrelated part)
CIw2DImage* image = Iw2DCreateImage("Zebra/Sun.bmp");
// Main Game Loop
while (!s3eDeviceCheckQuitRequest())
{
Iw2DDrawImage(image, CIwSVec2(0, 0));
}
I should mention that Sky and Sun are in different files. (Sun is transparent) But as I said I tried all different format (transparent and non-transparent) and I still have the problem.
No, my texture is not color reduced. It's high quality as I shown in the picture. Marmalade Simulator show it with reduced quality.
I mean that Marmalade may be reducing the number of colours in your image to optimise the texture that is generated from your image. You can check which format the texture is in by calling:
CIwImage::Format format = image ->GetMaterial()->GetTexture()->GetFormat();
If the returned format is correct then it could be a simulator problem.
format is ABGR_8888 for my 24-bit Alpha channel image. It's weird because I have this problem with all different image formats.
Can someone in the Marmalade team confirm that the two issues I reported (off the screen window of simulator) and graphic quality reduction are actually bug? And if yes when they are going to resolve?
About quality graphic reduction I seriously doubt that it's bug, as I guess many people already developed and published their application using IW and 2D graphic format.
I found the solution. In Configuration > Surface there is an option for changing Pixel Format (Device Pixel Format). It was on RGB444 by default. Changing it to RGB888 solved the problem.
Nice find Dane M, I will add that to the Marmalade SDK FAQ
But I still have the problem with the simulator that goes off screen. It's very annoying. Every time I run the simulator, I have to press Alt + F then press left arrow key to go into the window menu then choose "Move" and then move down simulator windows using down arrow key. It's really frustrating. Is this really a simulator bug? If yes, is there any workarounds?