Detail texture splatting is ready!

Detail texture splatting is ready!

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Detail texture splatting is ready!

Post by Beherith »

With infinite thanks to Kloot, detail texture splatting, and multiple dtexes are now ready for use.
Usage is simple:
A maximum of 4 detail textures are permitted. Copy each greyscale dtex to a channel of an RGBA image.
Then specify the distribution corresponding to each channel in an RGBA image.

Set up the multipliers and scales in smd, and you are done!

Example:

Code: Select all

	Description=Melt v1 - for 8 players. Made by [teh]Beherith;
	TidalStrength=20;
	Gravity=130;						
	MaxMetal=1.15;						metal a map square with the maximum metal value gives
	ExtractorRadius=100;				
	MapHardness=180;
	DetailTex=detailtex.bmp;
	SpecularTex=spec.tga;
	splatDetailTex=splattex.tga;
	splatDistrTex=splatmap.tga;
	splatTexScales=0.004 0.004 0.004 0.004;
	splatTexMults=1 0.5 1 1;
SplatTexScales defaults to (0.02 0.02 0.02 0.02), this is the current dtex resolution. Lower values mean larger size. Adjustable per channel.

Mults multiply the intensity for each channel.

Screeeenies:
Image

Image

Image

Sample maps you can try with latest GIT build:


http://beherith.eat-peet.net/stuff/DreamIsland.sdd.7z

http://beherith.eat-peet.net/stuff/Melt_v1.sdd.7z

How the maps of Melt_v1 were made:

SplatDistrTex:
Image


How the splatting texture is made:
Image

And thus where you can see red on the splatdistrtex, it will paint the (greyscale) detail texture put into the red channel of the splatting texture onto the map. Note the small blue dots on the splat distribution texture. Those are where the metal spots are on the map, and they have their own detail texture. It looks much nicer than to have them washed out by whatever other detail texture is on the surrounding terrain.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Detail texture splatting is ready!

Post by zwzsg »

I like my detailtex to be colored.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: Detail texture splatting is ready!

Post by luckywaldo7 »

Those screenies are simply stunning...
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Detail texture splatting is ready!

Post by Gota »

Looks awesome and lol at the uber ugly commander...
"hello,I'm a turd on your beautiful map"
Last edited by Gota on 23 Mar 2010, 14:27, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

zwzsg wrote:I like my detailtex to be colored.
Damn, I knew I forgot someone when planning this :(
Sorry zw, i was thinking for ages on wether multi colors are needed, and in the end said it would be faster if there was no color.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Detail texture splatting is ready!

Post by Gota »

So this adds a lot of small detail when you zoom in right..
If we compare this to how it was the difference is in how much detail?
What would colored detailtex mean?same add on of detail from close up but it could also be colored detail as oppose to small black and white lines(or whatever is in the detailtx image)?

I assume that if i use 4 detail tex images,all 4 will be spread on the entire map in exactly the same way?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

Gota wrote:So this adds a lot of small detail when you zoom in right..
If we compare this to how it was the difference is in how much detail?
Yes
What would colored detailtex mean?same add on of detail from close up but it could also be colored detail as oppose to small black and white lines(or whatever is in the detailtx image)?
more or less
I assume that if i use 4 detail tex images,all 4 will be spread on the entire map in exactly the same way?
Nope, you specify where each dtex goes in the distribution texture. Each can even have diff resolutions.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Detail texture splatting is ready!

Post by Gota »

Haha nice.
Now i really pity the fool who does not have a powerful comp with a lot of ram and it takes him ages to compile a map.

In those screenies you used one detail tex for the hills and slopes and another for the flatter ares with snow?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

I used 3, 1 for snow, 1 for rock, and 1 for mex spots.
It doesnt take any longer to compile, though I did have carrara render 3 passes of the map and I blended those and applied lighting in world machine...
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Detail texture splatting is ready!

Post by Gota »

What i meant is more testing.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Detail texture splatting is ready!

Post by zwzsg »

Melt_v1 yields:

Image



Dreamland yields:

Image





But at least colored detailtex still works!

Using 0.81.0-384-gd6b18b5-cmake-mingw32
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

The first content error is really wierd, because that file is clearly there and valid...
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: Detail texture splatting is ready!

Post by KaiserJ »

the easy part is over (implementing it) and now here comes the hard part, explaining to me how to use it, which could take months, even years!

hahaha i joke, this looks awesome, big schmanks to everyone involved, i'll be mixing some of this sexiness into my next work.

(once the file thinger is solved)
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Detail texture splatting is ready!

Post by Kloot »

zwzsg wrote:Melt_v1 yields:

Image

Dreamland yields:

Image

But at least colored detailtex still works!

Using 0.81.0-384-gd6b18b5-cmake-mingw32
Don't rename the .7z's to .sd7 directly, extract them into maps/ (they are archived .sdd directories).
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Detail texture splatting is ready!

Post by manolo_ »

the screens are epic
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

zwzsg wrote: Using 0.81.0-384-gd6b18b5-cmake-mingw32
Gonna need newer build than that.
User avatar
shedeki
Posts: 17
Joined: 05 Mar 2007, 13:53

Re: Detail texture splatting is ready!

Post by shedeki »

Nice. The example SplatDistrTex contains blurred edges. Does that mean that by using shades of grey in the distribution image I can specify just how much of any detailtex is used for that pixel? Would R,G,B,A 255,255,255,255 result in all four detail textures being superimposed at full strength?

The snow in those screens looks great. Guess thats the soft lighting + the contrast provided my the rough rock.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Detail texture splatting is ready!

Post by Beherith »

Shedeki: That is the case. It controllable from 0 to 255. Also, there is an additional pre-multiplier in the form of SplatTexMults.
You can just perturb the distribution with some fine perlin noise and it already will look much better than just a single flat detail texture.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Detail texture splatting is ready!

Post by very_bad_soldier »

Behe + Kloot = Awesome
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: Detail texture splatting is ready!

Post by manolo_ »

very_bad_soldier wrote:Behe + Kloot = Awesome
manolo+vbs=awesome widgets :mrgreen:
Post Reply

Return to “Map Creation”