Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Terrain Shader Using RGB Colors for blending #57944
10/22/05 10:28
10/22/05 10:28
Joined: Oct 2004
Posts: 150
Germany
T
tkunze Offline OP
Member
tkunze  Offline OP
Member
T

Joined: Oct 2004
Posts: 150
Germany
Based on the shader (from steempipe) i found in this forum i did some modifications that i can blend 3 textures over the terrain using RGB colors of a mask texture. In addition the black color of the mask will contain a base texture and over the base texture the shader blends a detail map.

The shader is work in progress cause i am still learning about the programming but it is still useful in my own project.

There is some more detailed information on my website:

Description (Germain Only)

The sample project can be downloaded using this link:

Sample project

As explained on the Website the shader only works on graphic devices supporting Shader Model 2 (e.g. Nvidia 6200) because it will blend the textures in one pass. Old shader model 1 supports only 4 blending textures in one pass.

Last edited by tkunze; 10/22/05 18:16.
Re: Terrain Shader Using RGB Colors for blending [Re: tkunze] #57945
10/22/05 11:37
10/22/05 11:37
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline
Expert
XNASorcerer  Offline
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
This is great! Now I can have one more texture on my terrains.

Re: Terrain Shader Using RGB Colors for blending [Re: XNASorcerer] #57946
10/22/05 17:11
10/22/05 17:11
Joined: Jun 2005
Posts: 656
G
Grafton Offline
User
Grafton  Offline
User
G

Joined: Jun 2005
Posts: 656
This is very cool tkunze! Is there a way to make the blending fade instead
of the sharp transitions?
Thanks!


Not two, not one.
Re: Terrain Shader Using RGB Colors for blending [Re: Grafton] #57947
10/22/05 17:41
10/22/05 17:41
Joined: Oct 2004
Posts: 150
Germany
T
tkunze Offline OP
Member
tkunze  Offline OP
Member
T

Joined: Oct 2004
Posts: 150
Germany
Hello Josiah,

this can easy achieved by if you use a pen with reduced hardeness to create the mask image.





Re: Terrain Shader Using RGB Colors for blending [Re: Grafton] #57948
10/22/05 17:46
10/22/05 17:46
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
It is great! Thanks a lot!

Josiah, the blending depends on your mix of the rgb colors, I guess.

Re: Terrain Shader Using RGB Colors for blending [Re: tkunze] #57949
10/22/05 19:20
10/22/05 19:20
Joined: Mar 2005
Posts: 969
ch
Loopix Offline
User
Loopix  Offline
User

Joined: Mar 2005
Posts: 969
ch
Great contribution! A clean, short and fast solution for blending four textures. Thanks, I feel like rating you 5 stars!
Now someone should make it work with Matt's spehre-engine...nothing more to be as happy as a habby outdoor-leveler can be!


Moderated by  Blink, Hummel, Superku 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1