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 / How do you load terrains and check for collision ?

Author
Message
Keemo1000
19
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 24th Jan 2006 09:39
Sorry , but no one has gave me a clear answer for this yet , is the only way to get a terrain in dbp is to export it as a bitmap ? I tried that and the terrain was 1/3 visible and the rest was just ... gone . Are any other ways /terrain editors (other than geoscape 3d) that , in the end, can get me a perfect looking terrain loaded into dbp ? (with textures and all) ? And how do I check for collision ? (BSP COLLISION HIT) isnt helping .

Pls reply .



In DBP - 3D is easier than 2D , 2 player is easier than Single player , Dont you think life rocks .. ?
Shadowed Lightning
20
Years of Service
User Offline
Joined: 10th Nov 2004
Location:
Posted: 25th Jan 2006 02:04 Edited at: 25th Jan 2006 02:05
First off, Geoscape3D is a great program in my opinion that has many more options than a simple .bmp heightmap. Second off, if you want to use it with a heightmap, you can use a variety of ways to load it and place it into a matrix, but as for tecturing thats up to yuo and it will involve layering textures and shading and all kinds of crap to look like your so-called "perfect." Geoscape3D Supports exporting in .x format which works well with DarkBASIC. If you load the map as a .x object into your program:

Load Object "My_Map.x",1

It will automatically texture it if you have hte texture included in the same directory. Or you can load the texture and mesh seperately and then make the object:

Load Image "My_Texture.bmp",1
Load Mesh "My_Mesh.x",1
Make Object 1,1,1

This will make your map as an object and texture it as it looks in Geoscape3D. If you wish to do collision with an object such as this, you will need to be using the intersect command which I have not quite "mastered" yet but there are tutorials and such that cover doing this. And I believe xMik has a great program out for running collision on objects. And he has put it into easy to use functions and provided everything needed to run it in a demo and write and compile your own code. There are plenty of other ways to make maps into objects with other programs, but alot of them will require file conversion. And I wouldn't go with BSP because DBP's BSP support is messed up.

AMD Athlon 64 3200 - GeForce 6800 GT - 320GB Hard Drive
1024MB RAM
Keemo1000
19
Years of Service
User Offline
Joined: 26th May 2005
Location: 28th Dimension
Posted: 25th Jan 2006 20:08
yur saying i can load a terrain as a mesh ? How ?



In DBP - 3D is easier than 2D , 2 player is easier than Single player , Dont you think life rocks .. ?

Login to post a reply

Server time is: 2024-11-27 05:48:42
Your offset time is: 2024-11-27 05:48:42