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 make terrain with one texture image, and not multiples?

Author
Message
Mark Garrett
Reviewed AGK on Steam
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 20th Nov 2013 06:56 Edited at: 20th Nov 2013 07:14


After running this program, I got a terrain with multiple roadmaps, all the same road map, (about 15 of them).

How could I texture the terrain with just one road map?



By the way, are 'MAKE OBJECT TERRAIN' and 'SET TERRAIN TILING' still valid commands in DBpro? (pg. 472, DBpro Volume 2)..

.
Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 20th Nov 2013 12:25 Edited at: 20th Nov 2013 12:28
"set terrain tiling" is one of the Advanced Terrain commands - quite different from the old "make object terrain" and related commands.

The "new" Advanced terrain commands are built-in to DBPro now and you can find a Help file on this thread - see my post near the end of the thread.

Advanced Terrain Help files

Edit Fixed the link, I hope.



Powered by Free Banners
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 20th Nov 2013 21:04 Edited at: 28th Apr 2014 20:11
Here's what a sample code might look like for Advanced Terrain:



Be sure your heightmap width and height are equal, and a multiple of 2 (e.g., 128x128,) else your texture image may not be centered correctly. (I think I learned that from a post by GG himself.)

Keep in mind that Advanced Terrain objects do not react well to hardware lighting or hardware shadows. A Matrix object works great, but you're limited to one texture with no detailing.

666GO†O666
Mark Garrett
Reviewed AGK on Steam
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 21st Nov 2013 06:39 Edited at: 21st Nov 2013 07:57
Well, I made a freaky looking terrain...using the example given in the download of the commands from Green Gandalf. I just went to Dark Matter and got a texture also to use and then I re-named it 'detail bitmap'

I tried the other code from Derik Darkly but couldn't get it to work... but thanks anyway Derik...

Here's the code I used, from Green guy..



.

Login to post a reply

Server time is: 2025-05-15 20:57:19
Your offset time is: 2025-05-15 20:57:19