Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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