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 / blend mapped terrains

Author
Message
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Aug 2010 22:21
This board frequently gets questions about blend mapping and also about terrains. This thread is intended for people who want to practice blend mapping with terrains and learn how to do it themselves.

Here's an example based on Advanced Terrain. It shows how to have dynamic lighting, three detail maps and two blending textures. The blending uses six of the eight blending stages available in DirectX and is an application of the extra undocumented functionality added to the set blend mapping on in U7.3.
Lost in Thought
22
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 25th Aug 2010 22:38
Awesome It kept silently exiting for me at first ... but then I looked at the code. You were using the spacekey to end the program. When it said press any key to start ... I was using the spacekey LOL

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Aug 2010 23:01
Quote: "When it said press any key to start ... I was using the spacekey LOL"


Ouch! I'll fix that when I revise the demo.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Sep 2010 20:10
Here's another demo. This demo uses all 8 texture blending stages to light and texture an Advanced Terrain object. It's similar to the previous demo except that a path has been added using two additional blending stages.

The demo also has some sound effects as I was doing some sound testing as well. If you wander into the right parts of the hills you'll hear a wolf or eagle. Most of the time you just hear an annoying cricket.

You can move around using the up/down keys and the mouse to change the camera angle and movement direction.

Press space to exit.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2010 15:16 Edited at: 23rd Sep 2010 15:21
@Green Gandaf
I don´t know why, but every time I try to run your codes, I get an error .... do I have to install any plug-in?


Failed to ´writeProgramAs EXEOrDEBUG´

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Sep 2010 15:21
It should tell you in the comments at the beginning of the dba code. You should see this:



If you have IanM's utilities and still get an error then what error are you getting?
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2010 15:24 Edited at: 23rd Sep 2010 15:39
That is the problem....I´v got IanM´s Matrix1 utilities time ago, and I´m very interested in all your codes







cheers

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Sep 2010 16:29 Edited at: 23rd Sep 2010 21:13
That looks like an editor error message. I've never seen that one before.

It's just possible the *.dbpro file has a setting which is confusing your setup. Have you tried making a new project in the same folder and copying the dba code into it?

Other than that, I've no idea what to suggest. Perhaps IanM knows what it means?

If an exe file is produced can you email it to me?

EditThe download works fine on my second machine. Here's a screenshot:

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2010 21:10
I'm still using the old DarkBasic editor. In new editors blueIDe and Codesurge give me a different error, but what is curious is that there is no line 0.




I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Sep 2010 21:20
Have you tried changing the display mode to something your machine supports? This is the relevant part of the dba code:



You could check the display settings in the project itself as well. The project file has the following lines. You could try changing those if your machine doesn't support that mode.



I've added a screenshot to the previous post so you can see what you should see.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2010 21:29 Edited at: 23rd Sep 2010 21:40
Thanks Green Gandalf. I have done differents changes in other to run it, but all failed...I,m trying to execute this code in my last laptop, which has the last tegnology ,and don´t works,but nor in my other PC that I have at home.I'm climbing the walls for so much frustration


cheers.

RE-EDITED
Quote: " Have you tried making a new project in the same folder and copying the dba code into it?"


I,m a fu...ng stupid. Now I remember of this stupid error...now I have try execute the Dba and not the Dbpro, and it works

Nice work !! Thank you so much...I will try to remember for the next time I see this error.

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Sep 2010 22:27
Quote: "I will try to remember for the next time I see this error."


Good luck - from another Grumpy Grandpa.

Login to post a reply

Server time is: 2026-07-24 23:12:35
Your offset time is: 2026-07-24 23:12:35