Jump to content
  • Advertisement

Archived

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

i_pee_freely

Heightmapping Question

This topic is 5549 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
Advertisement
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

  • 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!