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.

Code Snippets / Level Maker DBPRO 5.9

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 13th Apr 2006 16:41
before i used to create my levels in 3d studio max but the newton collision setting, texturing and blend mapping in dbpro was a pain, then i decided i should have my own level designer for my own games.
although this is not completed yet, it has all the aspects necessary.
i am putting this basic code here for others to benefit and improve for their needs.

Usage:
*the yellow cube you see is the constructor object,control its movement with WASD keys.
*grid x and z slider controls the constructor objects movement distance.
*color menu helps you to color your walls.
*texture menu helps you to texture your walls.
*wall button changes the constructor to create walls
*door button changes the constructor to dig door holes
*window button changes the constructor to dig window holes

how to create:
1-first click the wall button on the lower left corner and press SPACE one time
this is the start point of your wall.
2-then move constructor with WASD keys to define end point of your wall and press SPACE one time again.
there is your wall..

now keep making more walls and after you are ready for doors..
3-click door button one the lower left corner and move your constructor on the wall where you want to dig a hole
when the constructor is intersecting the wall you want to dig, press SPACE once to dig a hole..

after preparing walls its time to texture them.
with your mouse select a wall and after choosing your texture click on SET TEXTURE bUTTON there your wall is textured now you can scale the texture with the values and button on the right side menu..

oh, and clicking on the right mouse button lets you move with the camera which is controlled by the UPKEY DOWNKEY LEFT AND RIGHT KEYS and MOUSE..

Hope you like it, i need some comments if it could be useful or not..

Too Sexy

Attachments

Login to view attachments
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 13th Apr 2006 16:46
textures included in the above post are freeware so you can use anywhere,
if you want to use your own textures, just copy them to the "textures" directory and they will automatically be added to the list.

Too Sexy
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 13th Apr 2006 16:57
THats sexy... i like it

Thanks a lot!

I too have a lot of problems when making levels in max for dbpro, hopefully this will help..

Cheers!

CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 14th Apr 2006 10:43
well, its missing save function but that is simple, hard part is making ceilings and floors in one piece which you need to deal with vertex manipulation and thats which i never tried before..

Too Sexy
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 14th Apr 2006 22:11
Hmmm...I was working on a level editor for my game...mine uses win xp menus though in a more "effective" layout...too bad thats all I have

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 29th Jul 2006 11:35
It has potential.

When I right click the mouse, and then use the arrow keys to move around the world, I have a problem then with the wall/door/window creation thing. W no longer moves it up, but right or left, etc. If you are making a map, and need to turn around to a differant angle, you'd rather WASD keys still go in the direction you want them to.

Can you somehow keep track of what degree you have turned the viewing to, and alter the direction of the WASD keys to match up?

the last sane human being in a world gone mad
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 29th Jul 2006 12:02 Edited at: 29th Jul 2006 12:12
sorry Wolf Dreamer, i wont be in much help..I moved on to OGRE engine and uninstalled DBPro.
But as far as i remember;
Cam(0).a.x, Cam(0).a.y, Cam(0).a.z values already keep track of the camera angles.
EDIT: By the way i dont think making levels in DBPro is a good idea without fast light mapping routines, there is one from EVOLVED in the code snippets but i never tried it, and i dont know how good it can be..Must be good as EVOLVED made it though.
And TGC plugin is pay only version so its no good for a hobbist.
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 30th Jul 2006 00:34
Quote: "And TGC plugin is pay only version so its no good for a hobbist. "


Well I couldn't say that because I've just purchased the light mapping plugin from TGC and I got to tell you, its a damn good one too.

It only cost me £16.44 and it's already produced some pretty impressive results. It does an excellent job on light mapping large amounts of objects in a short time!

Working on several projects:
- World - A free level editor for DarkBASIC Professional
- Galactic Conquest - a sci-fi RTS game

Login to post a reply

Server time is: 2024-11-23 03:31:02
Your offset time is: 2024-11-23 03:31:02