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 / Making multiple objects beeing saved in one dbo

Author
Message
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 16th Dec 2014 22:09
Hello Community,

As the title says, how can i manage to get multiple objects in the scene and save them as one single dbo file?

Alex Matei CEO
www.alexmatei.com
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Dec 2014 01:20 Edited at: 17th Dec 2014 01:25
Look at the gamefx commands in the help file. These are the commands used in FPSC Classic.
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 17th Dec 2014 12:51
Hey WickedX,

I thought about looking there but i didn't seem to find the right command if you know the command please just tell me that command and i will try to resolve my problem from there!

Thank You!

Alex Matei CEO
www.alexmatei.com
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Dec 2014 01:22 Edited at: 18th Dec 2014 01:26
The first command to use is Set Static Universe. This is the parameters used in FPSC Classic -

Set Static Universe 4000, 2000, 4000

Now create or load your objects, texture them and apply an effect if you want. Position and rotate each object how you like and use Make Static Object. If the object has the same properties as an existing object, you just position and rotate the same object and use Make Static Object.

Once all objects are made static they can be deleted. The next function to use is Build Static Portals. Now, if you like you can use the commands - Add Static Objects To Light Map Pool and Add Light Map Light. When all done setting up the lights use Create Light Maps to create your light maps.

That it, your all set. Now you can save all the static object as one dbo file. From there if you want to load it in another source, just do as you would load a FPSC level in DBPro.
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 18th Dec 2014 10:11
Well,
I tried to make this code... But at save, the objects disappear and at reload it says cannot load 3D object

Alex Matei CEO
www.alexmatei.com
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 18th Dec 2014 20:37
Attached are the projects with media of my first successful attempt at using these commands. Hope its helpful.

Login to post a reply

Server time is: 2026-07-05 13:37:08
Your offset time is: 2026-07-05 13:37:08