Jump to content

[SOLVED] wrong signature textures


photo

Recommended Posts

Posted

Hi,

 

I'm using .Net System.Image.Save to create some of my textures in .png format. When I try to use them in unigine I get the following error;

 

09:46:14 ImageFilePNG::load(): wrong signature in "KASEMAKE/3DStest/objects/fachwerk40T/asset_material2diffuse.png" file

 

The thing is, these png's will open in windows picture viewer or any image editting program. Also if I open the image and resave it, it then becomes readable by Unigine. Assuming this is not a bug, what is it in my png files that Unigine cannot handle so I can look to ensuring it saves in a correct format?

 

http://dl.dropbox.com/u/12843270/asset_material2diffuse.png (the .png in question)

Posted

Your image contains wrong 8-Byte PNG signature header

FF D8 FF E0 00 10 4A 46

According to PNG specification it should be

89 50 4E 47 0D 0A 1A 0A

 

UNIGINE used libpng checks for this signature (which other image viewer might not do) and aborts loading in case of wrong signature.

Posted

ok, simple fix after hexeditor session: change your texture file extension to .jpg and it should load in Unigine without any problem...seems to be a JPEG image (idenified by FF D8 hex code JPEG signature )

Posted

Thanks for the info Ulf. We've constructed a workaround for the issue now.

×
×
  • Create New...