Archived

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

i_pee_freely

Heightmapping Question

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites