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 / How to swap a Terrain with a new one?

Author
Message
Klaus R
17
Years of Service
User Offline
Joined: 10th Dec 2008
Location:
Posted: 11th Aug 2010 10:46
How to swap a Terrain with a new one? I changed the grey heightmap within the program but I have difficulties to load the new Terrain. Please HELP! Is it possible at all?
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 11th Aug 2010 19:55
You can make more than one terrain. Just hide the old one and show the new.

http://s6.bitefight.org/c.php?uid=103081
Klaus R
17
Years of Service
User Offline
Joined: 10th Dec 2008
Location:
Posted: 12th Aug 2010 02:24
I want to write a simple map editor just by changing the higthmap and displaying it to see the result. I have the Ted editor but I feel it doesn't really do the Terrain exactly I want and I want to place my building with exact precision which is a pain with Ted. At the end the Terrain looks a bit different in Darkbasic and Objects seems to be out of place. All what I would like to find out is how to erase or change a current Terrain and built the new one with a new heigthmap.
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 12th Aug 2010 15:28
Not used TED so couldn't say about placing objects around using it. Not sure what you mean by erase or change the current terrain? Terrains are based on a 256 shades of grey. They base the height on the shade, Black being low, white being high (I think off the top of my head lol).
If you make a image in Gimp or similar and make it greyscale you can use that in DB to generate a terrain. Never had much luck playing in paint packages for this sort of thing though. Always relied on finding an editor of some kind.
You will struggle to beat Teds features I would imagine though. You can always look about for another package maybe.
You can always alter the height yourself and play around till it looks right. There are a few peeps who have done this sort of thing on here. Van B being one. Perhaps they may have some ideas.

http://s6.bitefight.org/c.php?uid=103081
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Aug 2010 15:47
The attached demo shows how you can create an advanced terrain object , then destroy it and create a new one. The process is instantaneous on my system.

When you see the first terrain just press n to see the new rather weird terrain.
Klaus R
17
Years of Service
User Offline
Joined: 10th Dec 2008
Location:
Posted: 12th Aug 2010 17:12
Thanks a lot Gandalf. Your example program is exactly what I needed. I actually didn't know about the "Destroy Terrain" command before and I used the delete Terrain comand which wasn't working good.I don't have the full documentation of all the Terrain commands. Where and how can I get it?

The Ted editor is not bad but it is designed as a more global map editor for all sort of different programming software. I'm using it most of the times and sometimes in combination with a painting program. Doing a map editor in Darkbasic means that you get your World exactly how you see it and have all your objects placed more precisely.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Aug 2010 20:51 Edited at: 12th Aug 2010 20:53
Quote: "I don't have the full documentation of all the Terrain commands. Where and how can I get it?"


I think the best resource was an unofficial one posted by Sixty Squares. I'll try to find it and edit this post with the link.

Here it is:

Unofficial Advanced Terrain Help Files
Klaus R
17
Years of Service
User Offline
Joined: 10th Dec 2008
Location:
Posted: 13th Aug 2010 13:21
Thanks Gandalf, this help file helps me a lot. I have the book "Hands on Darkbasic Pro Volume 2" but only the "destroy terrain" command is not mentioned anywere.. I sometimes feel that the Darkbasic software is a bit of a mess after so many upgrades and add ons with incomplete or poor documentations. I hope that the Darkbasic Studio edition is a clean new beginning with full documentations of all commands but maybe not. I was thinking about buying it but more because of all the free software inclusions.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Aug 2010 13:59
Quote: "but maybe not"


Probably not.

Quote: "I was thinking about buying it but more because of all the free software inclusions."


Yes, that's why I bought it.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Aug 2010 14:52
That's why I bought it too. Documentation's unchanged however.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-25 07:02:14
Your offset time is: 2026-07-25 07:02:14