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 / WL-SGE for DBP (Scene Graph Editor AKA 3D Level Editor) for FREE!!!

Author
Message
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 03:33 Edited at: 3rd May 2011 19:12
WL-SGE (Scene Graph Editor AKA 3D Level Editor) for FREE!!!

Website with all the downloads - http://csnorwood.com/WLSGE/WL-SGE_Downloads.htm
or http://csnorwood.getfreehosting.co.uk/

Original WIP forum: http://forum.thegamecreators.com/?m=forum_view&t=182641&b=22&p=0

Lots more DBP and GDK examples will be added soon.

Included in the attached download zip file is the Scene Editor with example levels and some prefab models. Also there is an example DBPro file with the code to Load the scenes. I've just spent the last couple of hours concerting this from C++ to DBPro for anyone to use.

Here's some screenies of what it looks like in action:

This shows transparent windows are not a problem.

And earlier screen shot of when it was in development.

All code is open source and I hope it comes in useful...

EDIT1: Working on the collision today and adding a demo using it for DBP...

EDIT2: Collision system now working.

EDIT3: Further down in another post is an example with almost a full level designed too (less than 1.5kb). Just download the attached file and run the exe to see what this can do for you.

EDIT4: Major update to the editor. You can use the helper object to move/rotate objects direct on the screen making level editing miles quicker.

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 17:54
Here's some sample code code using the WL-SGE levels.


Warning! May contain Nuts!
baxslash
Valued Member
Bronze Codemaster
18
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 12th Apr 2011 18:01
Very nice! Great work.

I'll have a proper look at this when I get the chance.

Thanks for sharing!

kamac
14
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Apr 2011 18:30
Amazing !

I'll wait for collision before testing out

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 18:44
The collision has now been added to the functions. I finally got round to installing Sparkys to my DBP.

What I am going to do is to work on a DBP demo using the WL-SGE system, by adding FPS movement, jumping and shooting.

I'll probably stop then because I'm getting into low level DirectX programming for my next Scene Graph Editor. I'll do my best to make everything DBP compatible, even if it is through a DLL...

Warning! May contain Nuts!
kamac
14
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Apr 2011 18:46
Cool Can you give us some video preview of your program ?

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 18:48 Edited at: 12th Apr 2011 18:50
Err, err, how do I do that?

The editor itself is open source, the link is at the top post.

Warning! May contain Nuts!
kamac
14
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Apr 2011 18:50
Use some recording software such as FRAPS, or Hypercam or Camtasia Studio ( I HIGHLY recommend it! ). Or if you want, i can make one

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 18:53
If you know what you're doing that would be great.

I'm in the middle of making a DBP demo FPS using it. Hopefully the particle system DBP offers will work fine for what I'm after.

Warning! May contain Nuts!
kamac
14
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Apr 2011 18:59
Okay, i can first make the video of the editor and then the DBP example if you want

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 19:10 Edited at: 12th Apr 2011 23:16
I should have some code to post later on for the FPS demo. Just knocking up a quick level to use. Thanks Kamac...

Warning! May contain Nuts!
kamac
14
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 12th Apr 2011 19:11
No Probs, i think i gotta use Fraps, because Camtasia is rather for lower-FPS thingies.

WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Apr 2011 23:19 Edited at: 13th Apr 2011 02:40
The attached project is a quick showcase using the WL_SGE.

Use cursor keys, or WASD, space to jump and mouse to look...

Also here's a screeny:


Before bed tonight I'll add a feature for shooting bullets. Hope this helps anyone out.

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 15th Apr 2011 03:31
Major update to the level editor:

The helper object in the middle of the screen can now be used to move objects around the scene and also rotate them. There's now a checkbox on the dialog to switch between move and rotate. The editor is also completely stand-alone. (1 file only does all)

Download it from the very first post and check out the FPS demo included complete with source ocde...

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 29th Apr 2011 20:37
Another update to the editor. Loading and saving now supports camera distance, fogging, backdrop and fog colour. I've probably exhausted all the DBP and GDK commands now for the editor...

[href]http://csnorwood.com/WLSGE/WL-SGE_Downloads.htm[/href]

Soon there will be more DBPro and GDK examples. I need something to showcase it...

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 30th Apr 2011 00:55
Tutorial on how to use the editor: http://csnorwood.com/WLSGE/WL-SGE-Tutorial.htm

Examples coming soon... (complete with source code)

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 3rd May 2011 19:10
Source code now released for the new updated editor...

Include this file into your project:


Here's an example piece of code which has been tested with it:


Also, in the very top post is the download with the editor, source, include file for DBP and a quick example DBP project.

Hope this helps anyone out there.

Warning! May contain Nuts!
Daniel wright 2311
User Banned
Posted: 3rd May 2011 21:05
I tested this, is pretty good, I love it but here is one thing that you should add, the main dir to be files, as set dir "files"
Why? I tryed to add a fpsc leval .dbo to it and it was all black, I could not see it at all as if it was not even loaded, this I might use for my game Im building now If You can do this for me.

my signature keeps being erased by a mod So this is my new signature.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 3rd May 2011 21:42
The main c++ code was in the dir before hand, I just separated the DBP version and referenced the media to that directory.

As to FPSC levels, I'm not sure about. I do know that you can create levels with light mapping in DeleD which is free and pretty good and just import them straight into this. I will have a look at the FPSC to see what the dbo files are that it uses. Unless you copy the dbo with it's media over then do it that way. Worth me having a look though.

Warning! May contain Nuts!
Daniel wright 2311
User Banned
Posted: 3rd May 2011 21:46
@WLGfx

I almost made something like this but at the time I realy did not know alot about the code to finish anything. This was 5 years ago, Now that I have more experienced you come out with this perfect thing that I was always wanting. But there are a few problems like saving and using the saved file in the project but this is what Ive been wanting for a long time.It makes it easer to place objects with out thinking about positions and such. And loading in objects with files is a good idea.

Thanks for the hard work

my signature keeps being erased by a mod So this is my new signature.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 3rd May 2011 22:37
Thanks for that Daniel. Although it took some time to actually finish it I eventually got it done. I might still find a bug yet, hopefully not though.

The next thing is to write a game demo using this (now I can use the 'array insert at bottom' function in DBPro). There's a few other things like special effects I want to add to this using the zone areas in the levels. That's mainly what they are there for. Hidden collision areas, spawn areas and placements for particles.

Warning! May contain Nuts!

Login to post a reply

Server time is: 2025-08-08 11:47:43
Your offset time is: 2025-08-08 11:47:43