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.

Newcomers DBPro Corner / Advanced terrain

Author
Message
boyd600
17
Years of Service
User Offline
Joined: 17th Oct 2006
Location:
Posted: 17th Oct 2006 15:37
hi im getting a little confused with advanced terrain, when i try to use the build terrain command my program crashes with an empty error message box.

im using 6.2 and i tried re-installing DBpro but no luck so far,
can anyone help?

cheers
Trinita
20
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Italy
Posted: 17th Oct 2006 19:05
Can you paste some code?

Ciao

"An eye for an eye will only make the whole world blind."
boyd600
17
Years of Service
User Offline
Joined: 17th Oct 2006
Location:
Posted: 17th Oct 2006 19:40
here you go


Thanks
Trinita
20
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Italy
Posted: 18th Oct 2006 00:22
This is the correct code to create a terrain:

make object terrain 1
set terrain heightmap 1, "heightmap.bmp"
set terrain scale 1,1000,50,1000
set terrain tiling 1, 1
set terrain split 1,16
set terrain light 1, 1, 0, 0, 1, 1, 0.78, 10
set terrain texture 1, 1, 2
build terrain 1

You must use as external files:
--heightmap.bmp (size must be power of 2-128x128 or 256x256 etc.)
--detail.tga (used for the detail mapping and loaded as image nr. 1)
--texture.bmp (as the texture for the terrain and loaded as image nr. 1)

And remember that after the creation a terrain is like an object, you can move it, scale it and texture it.

Hope it helped. Ciao.

"An eye for an eye will only make the whole world blind."
boyd600
17
Years of Service
User Offline
Joined: 17th Oct 2006
Location:
Posted: 18th Oct 2006 00:55
Thats great it worked! thank you

Login to post a reply

Server time is: 2024-09-25 11:28:21
Your offset time is: 2024-09-25 11:28:21