View Full Version : How to create realistic color palettes?

11-04-2002, 06:17 AM

I would like to add colors for my terrain rendering app, would someone have links/examples on how to implement a nice palette with snow for the top, blue for water and shades of green/brown in between


11-04-2002, 09:44 AM
I could be interpreting you wrong, but you could try a 1 dimensional texture, using the height as your texture coordinate

11-04-2002, 10:17 AM
could you make an image in photoshop with dimensions of 1x32 or 1x64 and create a custom gradient pattern with the range of what you want and then fill it. could that be used as a 1-d texture in opengl? i've never tried it.


11-04-2002, 10:16 PM
Thanks for the replies! I kind of see what you mean but some source examples would be great do you know where I could find them?

11-04-2002, 10:36 PM
There was a great tutorial at flipcode some time ago which described how to calculate base textures for your terrain, from a heightmap and ground textures.

When you are finished with that you could head over to www.vterrain.org's (http://www.vterrain.org) "ground detail" section, that will keep you busy for a while.

This article from delphi3d is also good if you have a "newer" video card. http://www.delphi3d.net/articles/viewarticle.php?article=terraintex.htm

[This message has been edited by roffe (edited 11-05-2002).]

[This message has been edited by roffe (edited 11-05-2002).]

11-05-2002, 04:08 AM
thanks! the links really helped!