PCX Files Don't Load

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
A.Russell
Posts: 56
Joined: Sun May 15, 2005 2:52 pm

PCX Files Don't Load

Post by A.Russell »

When loading .pcx files there is an "Unsupported indicator in pcx file" error.

It says on the Irrlicht home page that pcx is supported.

Code: Select all

pachi_parlor_node->setMaterialTexture( 0, driver->getTexture("media/pachi_parlor.pcx") );

PCX files created in Photoshop and Irfan have been tested.
hybrid

Post by hybrid »

The correct error message is "Unsupported pal indicator in PCX file". Thus, it's not a bug but a missing feature. It seems that pal stands for palette and describes the setup of internal palette representation (internal to PCX file, not Irrlicht). The only supported pal indicator is 12, whatever that means.
It might be not too hard o add some more supported features of PCX if someone has the definition at hand and knows a little about bit shifting and things. At least some of the missing features in other file formats were not too difficult to add. But I don't know PCX and even don't know if it's really a feature needed. Maybe you can adjust some parameters to get around this special subformat?
X_for_Extra
Posts: 69
Joined: Mon May 23, 2005 4:42 pm

Post by X_for_Extra »

Photoshop can save PCX in full RGB or in index color (i.e palette). Have you tried both modes?
Should put something witty here I suppose.
A.Russell
Posts: 56
Joined: Sun May 15, 2005 2:52 pm

Post by A.Russell »

Thank you for your explanations. I tried saving in indexed mode and that solved the problem. So, for anyone else who stumbles on this, PCX is only supported in indexed mode.

Thanks again for your help.
bucheron
Posts: 7
Joined: Sun Apr 17, 2005 10:38 pm

Post by bucheron »

Who is using PCX nowadays ? This format is pretty obsolete compared to PNG.
Post Reply