Jump to content
  • Advertisement

Archived

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

MARS_999

How can I use my Perlin noise generator to make a RGBA colormap?

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

I have coded up a perlin noise generator and can''t figure out how I would make the data into a RGBA image with colors that blend based on the value that the noise generator assigns? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Your noise generator will give you a different value for each input you give it. Your X,Y position on the map is the input. Your output is what to use for the colour. If you want 3 or 4 different values - eg. for red, green, and blue - try modifying the input somehow - by multiplying by a large prime number or something.

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!