Advertisement

Heightmapping Question

Started by May 06, 2003 04:24 AM
2 comments, last by i_pee_freely 21 years, 9 months ago
Just a quick question to do with the heightmapping tutorials: Why is the heightmap data stored in an array of bytes?? What is the significance of bytes????? It''s a dumb question i know, but if any1 can help me out with this it''d be great
There is no significance.

Bytes are simply smaller than floats, so less memory is taken up. Since the precision of floats (or some other type) isn''t needed in the demo, byte makes sense.
Advertisement
Also the .raw file contains only raw byte values...
to save some space. but be aware that using bytes can get you some "jagged" parts becouse percision error...

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement