I've a, basicly, simple Idea for the Generation of Terrain. No, not a better terrain renderer or similar. This "simple" Idea can get quite complex, if you follow it far enough, but basically it's simple and first of all, this will be a producibility study.
I just want to generate some Heightmap textures at runtime (not continuously), to let Spintz' nice Implementation of the Terrain Renderer do it's job.
I don't want to proceduraly generate some Height Data, I just want to take two (or more) textures and blend them partially together, to create a nice terrain.
So how do I blend textures? And of course, how do I do it _fast_
I've thougth about shaders, because they can do these sort of Operations quite fast. But I don't know, 1. how to implement it, so that I can get the texture back from the shader, and 2. how to run it like a Function, not like "per-frame" effect, as it is intended imho.
But maybe there's another, possible better, way to generate such textures, any Idea?
Thanks for the thoughts!
p.s.
Here a short ASCII stuff, to illustrate it a bit:
Code: Select all
Tex 1 Tex2
-----
|A|B| ---
----- |X| -> i.e. Blend D+X -> Y and use it for Terrain Generation
|C|D| ---
----
or D+X+(ABCD) -> Z for some senseless reason, (ABCD) means full Tex here
