Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / landscape multiple textures. how?

Author
Message
David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 17th Apr 2010 17:01 Edited at: 17th Apr 2010 17:02
can someone give me a small example of how to apply multiple textures to a land x model? & save it to dbo???

i know this is possible because ive seen alot of people do it with there own 3d landscape dbp program.

i really want to texture my own landscapes with multiple textures to make them look alot better!

what i mean is blending the textures together on a x model..
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 17th Apr 2010 17:21
Three ways;

1) Use one texture that is blended together from multiple others.

2) Use a multi-texture shader.

3) Instance the landscape for each texture layer, then manipulate the alpha of the superlaying meshes to allow the one(s) beneath to show through, thus creating the illusuion of multiple textures on the one mesh. This will of course eat up a lot of ineccessary polygons; you can traverse through the vertices of the meshes to remove any which isn't visible (because there is another completely opaque vertex from the upper mesh above it, etc.) to save in somewhat.


The second approach is most likely the best if your graphics card can handle it decently. (1) and (3) have the pro of allowing virtually infinite textures, while (2) is usually limited to at most 6 textures. Most of the time you won't need more than that anyway though. It should also be noted that (1) will eat up a lot of resources due to its sheer size if any kind of higher detail is desired. The other approaches can tile a base texture to save up resources.

Login to post a reply

Server time is: 2026-07-26 07:35:57
Your offset time is: 2026-07-26 07:35:57