Color swap

Hey, I’m using models into my app with textures and so forth but a weird thing happens when I display those models on Android devices: the blue and red color values seems to be swapped. On desktop, the textures are displayed with the right color so I assume it comes from the Android color management.



Is someone familiar with this problem ?

how are you loading them on android? xml, obj, collada, j3o?



I didnt notice this by now: Are the textures garbled or colored objects?

The models have been exported in an Ogre ASCII xml format (so xml basically). I load them using:



[java] model = assetManager.loadModel("Models/MyModel.mesh.xml");

rootNode.attachChild(model);[/java]



This loads the model (already textured).


Are the textures garbled or colored objects?


As I'm not the author of the models I can't really answer this... I only know that textures are ".tga" pictures like this one:

http://img695.imageshack.us/img695/5730/screenshot20110614at318.png

hmm, tga - didnt test that yet. Could you try and convert them to jpg or png?

That’s it. It works with png file instead. Weird I didn’t think it was coming from the format as it was only swapping red and blue. I’d have thought that a non supported format would make the texture not to load.



Anyway, thx !