Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mtl_terraintex detail_size #446530
10/20/14 11:59
10/20/14 11:59
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi,

Would it be possible to change the detail_size per skin of the terrain when using mtl_terraintex? Cause than I could use 1 large skin for the whole terrain and the other skins for different detail maps.

So it would be a cross between the default way terrain work (1 large texture + a detail texture) and the mtl_terraintex way (only detail textures) = 1 large texture with several detail textures.

Is this possible?

Thank you for your time.

Re: mtl_terraintex detail_size [Re: Reconnoiter] #446563
10/21/14 07:14
10/21/14 07:14
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Sure, use a shader for this, and multiply the skin texture coordinate with the desired factor.

Re: mtl_terraintex detail_size [Re: jcl] #446571
10/21/14 11:55
10/21/14 11:55
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Thank you for your comment.

Could you give me a name/hint of what kind of shader I should look into? Something like this: http://wiki.unity3d.com/index.php/3SideProjDiffuse1.1 by Nils/Slin?

Re: mtl_terraintex detail_size [Re: Reconnoiter] #446572
10/21/14 12:11
10/21/14 12:11
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Read the shader workshops: http://www.conitec.net/shaders/
After you are done with them (!) just take the diffuse shader as a basis and transform it into a multitex terrain shader yourself. Use "lerp" to blend between different textures (multiple tex2D calls from different texture samplers) based on some kind of blendmap information but multiply the textures/ colors with detail map colors first (where you scale InTex with some variables/ vecSkills, like Mr. Lotter said).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: mtl_terraintex detail_size [Re: Superku] #446575
10/21/14 15:10
10/21/14 15:10
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Okay great, thanks!


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | 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