Archived

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

Heightmapping Question

This topic is 5337 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

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