Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

TeeCee

Does anyone know the RAW file format?

This topic is 6057 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, can anyone explain the RAW file format to me, in terms of header, bytes per pixel etc. I am trying to extract the data for use in a height map. Thanks, TC

Share this post


Link to post
Share on other sites
Advertisement
Depends on what program made it. A 24 bit raw from psp for example has 24 bits (3 bytes) for each pixel. Red, green and blue. And as JHL said.. no header at all.

Share this post


Link to post
Share on other sites
yupp, you even have to know the exact size (height and width) and pixel-format of your raw image to be able to display it.
Actually, that''s why it''s called ''raw''...just a memory-dump, more or less.


Yesterday we still stood at the verge of the abyss,
today we''re a step onward!

Share this post


Link to post
Share on other sites
I''ve noticed that when I have saved a RAW file using PSP, when I go to re-open the file, PSP doesn''t know the file''s dimensions etc. Is this because it doesn''t have a header?
How can you open the file in its original state, if you can''t remember the size etc?
Or is that the whole point of RAW files - just simple byte streams (its just that they seem to be popular for creating height-map images for terrain)?

Share this post


Link to post
Share on other sites
thanks for the replies guys,
(sorry Vaporisator, I posted my reply at the same time that you were answering my question!)

Share this post


Link to post
Share on other sites
You got it. I often use raw and create my own headers with it. Make sure you remember the bpp, height and width, or else its worthless.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!