Hiho Java2D folks.
I want to create some smooth landscapes in Java, and I found some cool techniques for terrain rendering called procedural texturing. The idea behind this is simple. Just paint an image which represents all the "textures" you want to draw. I adapted this for Java2D and got some nice results.
The "map" image:
http://kieselsteini.de/BILDER/bla.pngThe resulting map:
http://kieselsteini.de/BILDER/result.jpgAs you see, everything which was blue is now water etc, etc, so every color of the RGB Map is "mapped" to one "texture".
This works wonderful, even if the map is much smaller as the resulting rendered image. But I've one big problem. This way I could only display 3 different textures at once. How can I increase this? Any suggestions?
Geetings,
steini