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 / 3d Levels?

Author
Message
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 4th Sep 2007 18:01
Hi there, i'm totally new with DBP, so i have to ask some question

-Now I have a level in 3d World Studio ( I've allready exported it as dbo )
What I want is to import it into DBP,
so I could actually go around in the world!
-Someone who can code that to me, or someone who want to help me?

Thanks

The Earth is full, go home!
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 4th Sep 2007 20:46
load object "filename.dbo",object number.
read the help files. don't go asking questions on here before looking it up in the help files. another good idea is to search before you post - the search thing is at the very bottom of the page.


thanks to deathead for the sig!
Projects: alien abductor-5%
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 4th Sep 2007 21:16
Quote: "- the search thing is at the very bottom of the page."

-Thanks, i did'nt know that
But thanks!

The Earth is full, go home!
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 4th Sep 2007 21:47
I've found THIS in the help files:

-But where should i put the media ( in whitch folder? )

The Earth is full, go home!
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 4th Sep 2007 23:16
in the project folder - that code will only load a .bsp map, if you have a .dbo map you can't use that code. you will have to use load object.


thanks to deathead for the sig!
Projects: alien abductor-5%
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 5th Sep 2007 03:49
1. Use LOAD OBJECT "whatever you saved your world as.dbo",ObjectNumber

2. Okay now you've got your world. What you will now need to to is COLLIDE with the world so you can't go through it. There are lots of ways to accomplish this, but one of the most popular is Sparky's Collision DLL which is a free DLL that features some useful collision commands for DBPro. Here's a link if you want to see it: Sparky's Collision DLL

Just search COLLISION or something of the sort and you should be ok


***Note: If you are just starting I would sugguest starting with something a little smaller than collision in 3D Worlds. Try searching for some tutorials or visiting the "USEFUL THREADS FOR NEWCOMERS" thread located at the top of this board. Starting small and expanding can be very helpful in not frusturating yourself (I tried to make a walkable terrain as my first project: BAD IDEA )

Good luck

zeeenza
18
Years of Service
User Offline
Joined: 2nd Jul 2006
Location:
Posted: 5th Sep 2007 04:57 Edited at: 5th Sep 2007 04:58
Don't use BSP maps. Stick with .x or .dbo objects.

Whether you use Sparky's dll (which I suggest) or not, make sure you have it set to detect collision by polygons. If you don't, you won't be able to walk through doors and into open areas of your object. In Sparky's it's done in the sc_setupObject function by setting the last parameter to 0. In DarkBasic collision functions, use SET OBJECT COLLISION TO POLYGONS Object_Number.

Windows Vista Home Premium :: Intel Core 2 Duo - 2.2Ghz :: 2GB System RAM :: nVidia GeForce 8600M GS - 511MB VRAM
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 5th Sep 2007 09:37
Thanks, but Sometimes i get an
"RUNTIME ERROR 105, -FILE DOES NOT EXIST AT LINE 5"
But the file exist...

What can I do?

The Earth is full, go home!
Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 5th Sep 2007 10:15
have you created a project? if yes, then make sure the file is in the project folder. if not then make one, it is the easiest way to keep track of all your media.


thanks to deathead for the sig!
Projects: alien abductor-5%
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 5th Sep 2007 12:32
yeah, now it's working
-But if the media in in folder ( a folder inside the project folder )
Should I write


The Earth is full, go home!
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 5th Sep 2007 12:45
One more question;
I want to "go" arount in the world ( .x )
Whitch code should I use then?

The Earth is full, go home!
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 5th Sep 2007 14:37
Well look at the DBC tutorials in Monster Hunt and you'll find them.



Blobby 101
18
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 5th Sep 2007 17:57
move camera using arrowkeys - that is the command you use to move around. it does not have collision so you can go though walls. collision must be coded separately.


thanks to deathead for the sig!
Projects: alien abductor-5%
DogBoy
17
Years of Service
User Offline
Joined: 6th Sep 2007
Location:
Posted: 6th Sep 2007 14:16
Hi Kronos, Listen. Darkbasic is a good engine,and has some great features. but no matter what anyone tells you, its a programmers engine, and is not geared toward artists needs.

If you want a powerfull engine with a wysiwyg editor, and simple javascripting, check out dxstudio. i converted over and have never looked back. http://www.dxstudio.com/default.aspx?affiliate=eba55449-0daf-4f60-a7f7-4752ae66850b

Also the community and support are great! no one is above helping you!

Richard Sneyd
Kronos
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Chernobyl
Posted: 6th Sep 2007 17:34
Thanks, ( I asked Simon about some help, he is a Norwegian DBP coder )
-You know what? Now I have created a 2d "pong" game!!!!
Here is a screenie from the game!!!!!


The Earth is full, go home!

Login to post a reply

Server time is: 2024-11-25 13:21:34
Your offset time is: 2024-11-25 13:21:34