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 / DbPro and terrains.

Author
Message
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 20th Jan 2011 17:20
hi, i would like to make a terrain/ground for a doungeon siege style game, and my question is:

how many way i have to make grounds?

i'm not so skilled on terrains and i usually use our old dear matrix.

i know there is blitz terrain in WIP, or something else like advanced terrain, but i have really no idea of what these grounds are!

How i make it? whai i need? how i can control collisions an read the height point of a x,z position? tutorials?
i have the bad feeling there aren't tutorials.....
someone can light a faint glimmer of hope in my mind??? thanks.



[img][/img]
Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 20th Jan 2011 19:37
here's a simple example with comments regarding Advanced Terrain

http://forum.thegamecreators.com/?m=forum_view&t=180327&b=7

you can download L3DT for free (google search) to create the terrain textures and the heightmaps.

heightmaps for A.T. must be converted to greyscale truecolor 24bit depth.

Hope it helps
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 20th Jan 2011 23:02 Edited at: 20th Jan 2011 23:42
it helps for sure! thanks!



[img][/img]
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 20th Jan 2011 23:34 Edited at: 20th Jan 2011 23:42
works. thanks.



[img][/img]
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 20th Jan 2011 23:52
Advanced terrain came with one of the free upgrades I think. You probably already have it.

I don't remember which are AT commands and which are the original terrain commands though sorry!

Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 21st Jan 2011 00:28
i've the help files already downloaded!!! and yes, i've the dll.

thanks!



[img][/img]
Kiaurutis
15
Years of Service
User Offline
Joined: 19th Jan 2011
Location: Lithuania
Posted: 21st Jan 2011 17:45
following startup tutorial for L3DT i got 4 images of my map textures and many other files (images for lighting and other stuff)- question is what to do with them? should i export project into obj or 3ds? or i should select several of images to copy into my DBPro project folder, to use them for loading the terrain? i dont know which of them are required in this case
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 21st Jan 2011 19:53
You would save the heightmap and the texture map. Then use the heightmap to set up a terrain of one form or another, or use it in BlitzTerrain. (which is what I'm current doing) Then just texture the terrain with the texture map.

The other images, like the light, normal, and specular maps can be applied to the terrain via texture blending or by using a shader.

If your terrain in L3DT isn't to large or complex you could save it to a 3DS object and try loading it in DBPro that way. I tried with mine and after 20 minutes the DBPro program still hadn't finished loading the model, so I suspect that's not a great option, at least not for large terrains..

Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 22nd Jan 2011 11:18
I normally use the heightmap texture exported to true color greyscale .bmp and the terrain texture only, sized at 2048x2048 - no chunks ( max setting for the free version of L3DT).
Not yet played with lightmaps etc...

I build terrains from a basic start ( heightmap) size of 512x512 to get enough detail, and later on, after export, i may resize the heightmap to 256x256 (if 512x512 pops out too many polys) to still keep a good terrain detail and texturing at smaller scale
.
If, later on, after all calculations, you are going to edit the heightmap with the 3D editor don't forget to recalculate everything otherwise all the following maps will be mismatched.

Here's a series of pics in a sequence trying to illustrate the process.
Kiaurutis
15
Years of Service
User Offline
Joined: 19th Jan 2011
Location: Lithuania
Posted: 22nd Jan 2011 14:40
Thank you for your responses, they are very useful
Scorpyo's step by step tutorial explains all the way of making terrain and exporting it(Yey!)
I go continue my nabish project on 3D strategy game- there is a lot of work to do about loading map
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 23rd Jan 2011 17:14
i've enough ideas to make an automatic terrain generator, for random terrain for a tank/helo game i've in my mind.

we'll see. i've to release ESF first!



[img][/img]

Login to post a reply

Server time is: 2026-07-16 10:54:11
Your offset time is: 2026-07-16 10:54:11