Sign in to follow this  
shirsoft

Simple image file format

Recommended Posts

Hi guys, I keep running into problems when working with images with more than 8 bit channels, like float textures. I was thinking of simple file format which contains the following: width, height, num channels, data_type=8,16,32 int, float, double, Raw Data Would it be useful, or are there any better free alternatives available.

Share this post


Link to post
Share on other sites
have you looked at the targa (.tga) format? It's very simple to understand / use, although I don't think It handles floats or doubles but you would have the benefit of not having to right a converter/exporter

Share this post


Link to post
Share on other sites
Well I have been dealing with some floating point textures generated in glsl and obviously my code had some bugs in it. I can export the data back but its difficult to visualize since I wasnt using any image library like free image. I then ended up export this float file to disk with the width and height and wrote a program in C# to scale the values from 0 to 255 for display purposes. That did give me some insight. I then thought extending it to other datatypes which are bigger than byte could be useful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this