PDA

View Full Version : How to create realistic color palettes?



fcoutel
11-04-2002, 07:17 AM
Hi!

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

Thanks!

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

jebus
11-04-2002, 11: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.

jebus

fcoutel
11-04-2002, 11: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?

roffe
11-04-2002, 11: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.
http://www.flipcode.com/tutorials/tut_proctext.shtml

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).]

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