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 / Large map with multiple blended textures

Author
Message
Fireotter
15
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 12th Mar 2011 21:37
Hey, I'm looking for a way to have a large terrain that draws different textures in different places according to other pictures (masks?). I am not looking for just a terrain with one image and a detail map textured inside of it. If there is another way to have 3 or more textures blended together easily on either a terrain or .x terrain, I would like to know about it...

I did find one that gave me somewhat what I wanted, but various effects like fog and such didn't work on it.

I plan on using the final result to make some sort of basic hack and slash rpg

I've been looking around the forums for around a week now, without much success.

Any help would be appreciated

Fireotter
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Mar 2011 22:12
Have you tried the set blend mapping on command? That enables you to blend about three or four different textures using suitably constructed masking textures.

I posted a demo a while back showing the sort of thing that's possible. Didn't try using it with fog though.
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 13th Mar 2011 00:29
Are you sure about that 3 to 4? The help suggests 7.. plus the standard texture!.. or did i misunderstand something?
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Mar 2011 00:59 Edited at: 13th Mar 2011 01:02
Quote: "Are you sure about that 3 to 4?"


Yes - if you are using masking textures as well.

Quote: "The help suggests 7"


The limit is 8. The only reference to such things that I can find in the Help file is the somewhat oblique

Quote: "10-17 - Take UV Data From Stage Mode Value minus 10"


Counting the numbers 10 to 17 on my fingers gives 8 not 7. Perhaps you used a calculator?

Edit

Quote: "plus the standard texture!."
I missed that bit, sorry. But, actually, you can use any 8 textures not necessarily the "standard texture" - plus a few more things besides.
Fireotter
15
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 13th Mar 2011 01:01
Green Gandalf, I read your post, but I really didn't understand any of it, would it be possible for you to do a step by step of what each command actually does?

Thanks
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 13th Mar 2011 01:29
Uh wasting precious layers by masking sounds a bit silly.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Mar 2011 13:22 Edited at: 13th Mar 2011 13:25
Quote: "Uh wasting precious layers by masking sounds a bit silly."


It does I agree - but often there's no alternative.

Quote: "Green Gandalf, I read your post, but I really didn't understand any of it, would it be possible for you to do a step by step of what each command actually does?"


I sympathise . I assume you're talking about this one:

blend mapped terrains

If so, which demo and which commands are you talking about?

Edit Alternatively you could use a shader solution. I've got various terrain blending shaders around - and someone adapted one of them to use 6 textures I think.
Fireotter
15
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 13th Mar 2011 14:09
Quote: "
I sympathise . I assume you're talking about this one:

blend mapped terrains

If so, which demo and which commands are you talking about?
"


Yeah, thats the one, the parts I dont understand are



Also, I could try using a shader, I'm still in the early stages of the game just gathering and creating media, and I came across the actual map, so my options are open.

Thanks a lot for all the help
Fireotter
15
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 17th Mar 2011 19:41
Sorry for appearing impatient....

Can I get some help here?
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 17th Mar 2011 22:31
The best one I've seen so far is ExtendedTerrainXYZ, here..

http://forum.thegamecreators.com/?m=forum_view&t=113993&b=5

I asked once if he would upgrade it to use BlitzTerrain, but haven't heard back if he intends to or not. The terrains you can produce with it are "fairly" large, and allow up to 7 or 8 textures, and uses some form of alpha blending to accomplish the final render.

To bad it's not open source.

Fireotter
15
Years of Service
User Offline
Joined: 6th Mar 2011
Location:
Posted: 17th Mar 2011 23:22
That certainly looks nice, too bad its not free.
Wyldhunt
16
Years of Service
User Offline
Joined: 27th Sep 2009
Location: The Dark Side
Posted: 18th Mar 2011 06:37
http://www.evolved-software.com/shaders/advlighting
Evolved's map editor is included with his Advanced Lighting download. It has the source code. It is set up to use brushes and paint different textures on to the terrain. It's a very basic editor with no GUI or anything, but it demonstrates how to use the different techniques of advanced terrain control as well as how to use his huge set of shaders.
It tends to be laggy because it's using so many complex shaders at once. As far as demos and example code go, it's great.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Mar 2011 13:05
Quote: "Sorry for appearing impatient....

Can I get some help here?"


I'll try to find time to explain those set blend mapping on commands over the next day or so. Been rather busy lately.

Login to post a reply

Server time is: 2026-07-17 13:58:37
Your offset time is: 2026-07-17 13:58:37