Hi all,
I'm writing a custom dds exporter for our needs (dds is a texture format for 3D graphics). I haven't had too much trouble with it, except that I am having a great deal of trouble detecting wheter photoshop is giving linear or SRGB data. It appears to most of the time give me SRGB data when I'm in 8 bit mode, and most of the time give me linear data in 16 bit. However, if an artist goes from 16 bit to 8 bit mode - photoshop appears to go into an odd linear 8 bit mode. Thus, it doesn't convert the 16 bit linear into 8 bit SRGB.
I've all seen weirdness on import - most of the time it appears that photoshop assumes that 8 bit images are gamma, and everything else is linear, but I'm not 100% sure of this (as above mentioned case).
While certain formats seem to be able to still do this gamma conversion, (e.g. the tga saver), I can't figure out how to determine what space photoshop is in by the ExportData structure - andI can't find it in any the suites. Ideally, of course, I'd tell our artists to stick to 8 bit gamma textures so we don't lose precision, but I need to be able to detect the difference.
Thx,
-Dan