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 / Terrain problem - terrain keeps changing.

Author
Message
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jul 2006 11:04
I have made a heightmap which I need to make some land from. I started off using terrrains, but when you move around the terrain, it keeps changing height and dissappearing/reappearing. I can't use matrices because they're too slow and I've even tried making an object by writing bytes to a memblock and turning it into a mesh.

All I need is either some help on why the terrain doesn't work properly or some other way to do it.

PLEASE!!!


There are three types of people, those that can count and those that can't.
D Bellis
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 14th Jul 2006 12:16
try setting your camera view distance higher that should fix the problem or add in some fog as whats happening when the parts of the terrain go out of view it only looks like its changeing but infact its still the same just the camera playing tricks on you

Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe MotherBoard NForce ChipSet , 768MB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram , WinXP Pro SP2
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jul 2006 12:32
Thanks, I've got it working but th terrain doesn't come out at the same size - it's not smooth, it's got edges. Is it not supposed to be the same size as the bitmap?

There are three types of people, those that can count and those that can't.
D Bellis
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 14th Jul 2006 18:39
you can scale the terrain like you would an object the heightmap would just be its initial size then you can manipulate it as needed just look under the terrain commands for it just that some times if you have a predefined texture you may also need to scale that so it fits the terrain proper with out it looking stretched

Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe MotherBoard NForce ChipSet , 768MB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram , WinXP Pro SP2
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jul 2006 19:42
How can you scale the terrain? the only commands I can find are:
make terrain
delete terrain
position terrain
texture terrain

terrain exist()
terrain position x-z()
get terrain height()
get total terrain height()

are there supposed to be more?

There are three types of people, those that can count and those that can't.
D Bellis
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 14th Jul 2006 19:55 Edited at: 14th Jul 2006 19:57
Try Set Terrain Scale terrain_number,X,Y,Z doesnt seem to be documented but im shore it used to be hmm that does work btw

Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe MotherBoard NForce ChipSet , 768MB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram , WinXP Pro SP2
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Jul 2006 20:10
The problem is that you are using the incredibly old terrain system that is absolute pants.

What you need to use is the advanced terrain commands that use a heightmap, texture map and detail map. You should find an example how to use them in the help folder where DBPro is installed.

Boo!
Diggsey
19
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jul 2006 20:25
I haven't got any advanced terrain help files, but the commands work - I just have no help on them. Do you know why, and is there a way to get them?

There are three types of people, those that can count and those that can't.
D Bellis
18
Years of Service
User Offline
Joined: 6th Jul 2006
Location: UK
Posted: 14th Jul 2006 20:40
i also have no help files on it so its most likely an over sight

Amd Athlon 64 3000+ Newcastle , Asus K8N4-E Deluxe MotherBoard NForce ChipSet , 768MB DDR Ram , XFX Geforce 6600 Extreame Edition 512MB DDR2 Ram , WinXP Pro SP2
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 14th Jul 2006 20:59
No.. The new advanced terrain commands do exsist just look in bug reports for them

Platformer Compo!
WHITEKNUCKLE IS BACK! Check the wip boards for more info

Login to post a reply

Server time is: 2025-06-28 05:42:27
Your offset time is: 2025-06-28 05:42:27