Page 1 of 1
Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 08:26
by thesleepless
Cool terrain editor, not released yet but looks very nice for making spring maps!
http://www.decarpentier.nl/scape-render
http://www.youtube.com/watch?v=oaAN4zSkY24
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 09:28
by Cheesecan
Realtime procedural textures on par with any pre-generated texture I've seen for Spring..very cool to say the least.
I'm quite impressed this guy made this as a master's thesis. 231 pages..must try to read through this some time..
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 09:39
by Anarchid
Drool mode enabled :0
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 11:18
by BaNa
Heightfields allow for a basic 2D texture mapping strategy: Repeated tiling textures can simply be projected vertically onto the XZ plane. In other words, the vertices' XZ values can simply be interpreted as (scaled) texture UVs. This basic projection works well for flat land and even hills, but causes noticeable stretching on very steep and rough terrain.
For steeper features, a projection along a more perpendicular (and thus horizontal) direction is more desirable. Hence, a more complex projection strategy was also implemented: Instead of only projecting the textures vertically, they are also projected along the X and Z axis. The outputs of the three sampled projected textures are blended based on the pixel's normal direction. That way, flat areas will continue to use the vertical projection, while steeper areas blend in results from more horizontal projections. The technique's advantages are especially noticable on steep terrain features, as shown here. In a pixel shader, this can simply be implemented as:
float3 uvwPos = uvwScaleFactor * worldPosition;
float3 weights = worldNormal * worldNormal;
float3 blendedColor = weights.xxx * tex2D(texSampler, uvwPos.yz).rgb +
weights.yyy * tex2D(texSampler, uvwPos.zx).rgb +
weights.zzz * tex2D(texSampler, uvwPos.xy).rgb;
When enabled, the above is executed four times in this implementation's pixel shader: once for each of the four texture layers. Note that the three weights will always add up to exactly 1.0 for normal vectors (assuming they are properly normalized), as x2 + y2 + z2 = 1.0, so no additional weight normalization is needed. Furthermore, when compared to powers other than 2, using the square of the normal components as weights also strikes a pleasing balance between preventing unnecessary blending and offering smooth transitions between projection directions.
This is very interesting, could a projection technique like this realistically be implemented in spring?
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 12:26
by SirArtturi
Very nice.
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 14:49
by Kloot
BaNa wrote:
This is very interesting, could a projection technique like this realistically be implemented in spring?
It's a bit messy, but not impossible:
http://imageshack.us/f/254/screen00000f.png/ (default)
http://imageshack.us/f/651/screen00001w.png/ (modified)
("messy" because this won't always play nice with SMF's texture-tiling approach)
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 15:19
by knorke
ooh advances!
Does this also fix the problem of "morphing" textures when moving the camera? I do not mean the terrain LOD adjusting but this "popping" where on some maps the side of a steep wall changes color when viewed from different angles.
Re: Scape - some new map maker app, look cool
Posted: 16 Jan 2012, 15:34
by BaNa
mind blown, awesomeness maxxed out!!!