Advertisement Jump to content


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


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

This topic is 5434 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
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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!