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 / Blendmap Advanced Terrain

Author
Message
Zipir
16
Years of Service
User Offline
Joined: 11th Aug 2009
Location: Turkey
Posted: 5th May 2012 00:22 Edited at: 5th May 2012 00:23
Hello...im looking for texturing advanced terrain with blendmap command (with 6 different textures) ???

simple blendmap texture

red color =texture1
green color =texture2
blue color =texture3
black color =texture4
white color =texture5
transparent color =texture6

is there anyway for use 6 textures for advanced terrain with blendmap technique or maybe using shader?
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 5th May 2012 00:41
IMHO black and white would not work.

«It's the Shader, shader me this, shader me that»
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 6th May 2012 02:02
Quote: "is there anyway for use 6 textures for advanced terrain with blendmap technique "


Yes. Just use the appropriate blend mode options in the set blend mapping on command.

You could also look at this which illustrates some of the more advanced features:

blend mapped terrains
Zipir
16
Years of Service
User Offline
Joined: 11th Aug 2009
Location: Turkey
Posted: 8th May 2012 17:04
Greetings Green Gandalf
I have made one little terrain with your blendmap codes and its looking good...its have 4 different texture layers and i need add one more texture layer if its possible? CAN YOU HEEEELP PLS
its will be cool with 5 texture layer
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th May 2012 22:17
Quote: "its looking good"


It certainly is. Well done.

It might be difficult to add an extra layer using that method. You are limited to 8 blending stages in total and you've used 7. You probably need two stages to do it that way and you only have one spare. I'll see if I can think of a way.

Alternatively, use a shader. There are some terrain blending shader demos on the forum. It would be good to do it with pure DBPro though.

Login to post a reply

Server time is: 2026-07-07 22:22:05
Your offset time is: 2026-07-07 22:22:05