Complete Level File

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
willyp
Posts: 1
Joined: Wed Jan 11, 2012 12:53 am

Complete Level File

Post by willyp »

Hi, I'm very new to this and have tried googling the question but:

Is there a pre-exiting format/system to save a "level" or "area" that can record and then subsequently load into the scene manager. Should be able to load up buildings, terrain, placement of models, lighting etc. Or is there a better way of doing this?

I've seen the quake level format, is this the way to do it, or is there a better way? Looking for an expandable solution.

Thanks in advance, Will.
RdR
Competition winner
Posts: 273
Joined: Tue Mar 29, 2011 2:58 pm
Contact:

Re: Complete Level File

Post by RdR »

Irrlicht has a irrscene loader and writer.

Code: Select all

 
        //Load scene
        smgr->loadScene("filename.irr");
        
        // Save scene
        smgr->saveScene("filename.irr");
 
Better example here:
http://irrlicht.sourceforge.net/docu/example015.html

You can build an entire scene with this editor:
http://www.ambiera.com/irredit/

Or just manually add them in the code and saveScene() to a file.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Complete Level File

Post by Cube_ »

hehehe.... I would make the mesh in blender and just import it to place lights and particles (I don't think that irredit can be used to make stuff more advanced than primitives and terrain...)
"this is not the bottleneck you are looking for"
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: Complete Level File

Post by Radikalizm »

aaammmsterdddam wrote:hehehe.... I would make the mesh in blender and just import it to place lights and particles (I don't think that irredit can be used to make stuff more advanced than primitives and terrain...)
Maybe because irredit is a tool used for compositing scenes, and not for building geometry? ;)
Building an entire scene in blender and importing it as a single mesh is something you'll probably not want to do, better to build separate meshes in blender and then composite a scene using these meshes in irredit
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Complete Level File

Post by Cube_ »

well yes. but I still make all the mesh in blender (Separate files so I cane asily reuse the same mesh though ;) )
"this is not the bottleneck you are looking for"
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Complete Level File

Post by ACE247 »

@aaammmsterdddam get yourself the irrblender 0.6 Blender plugin from pc0de's svn (Tubras game Engine) and you'll never need to use irrEdit again.
Its my preferred scene Editor, does it all, even more if you just tweak the script a little.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Complete Level File

Post by Cube_ »

would it also export lights and particles? (Even if it wouldn't I could manually place those in irredit. or even better just hardcode their locations!)
"this is not the bottleneck you are looking for"
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Complete Level File

Post by ACE247 »

It exports anything! aaammmsterdddam... Anything!
Lights, Animations, Physics Userdata, skydomes skyboxes, volume lights water surfaces, custom node types, you can setup all irrlicht material(includes per-pixel parralax/bump) settings within irrblender,all textures, all lighting... The list goes on. Oh and animation paths and cut scene style animation user data. Its by all means the best Irrlicht scene editing method. Puts it all in one neat .irr file or even in a packed zip ready to load with the engine. It can also export things like meshes and nodes to irrlichts irrmesh or irrbinarymesh or irranimatedmesh format if you add the loaders and writers provided. ;)
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Complete Level File

Post by Cube_ »

**Jaw dropped four floors**
o.0
that is indeed VERY awesome.
thanks for the tip!
"this is not the bottleneck you are looking for"
Grumpy
Posts: 77
Joined: Wed Dec 30, 2009 7:17 pm
Location: Montana, Usa

Re: Complete Level File

Post by Grumpy »

ACE247:
Could you drop us a link to the irrblender 0.6 Blender plugin from pc0de's svn ???
Thanks.
code happens
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Complete Level File

Post by Cube_ »

I'd have to agree with grumpy, I have been searching like a madman... I found IrrB 0.4
that's all I found.
"this is not the bottleneck you are looking for"
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Complete Level File

Post by ACE247 »

Here you go, put this into irrlichts plugin directory and off you go.

http://code.google.com/p/tubras/source/ ... rrlicht.py
BUT GO TO THE LINK, do NOT just save the link, then copy out that code in the appropriately named file in your blender plugin directory. (For the Noobs)

And explore this directory more under tools, for extra stuff:
http://code.google.com/p/tubras/source/browse/
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Complete Level File

Post by mongoose7 »

There is a link on the page to view the raw file. Might need that as well.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Complete Level File

Post by serengeor »

ACE247 wrote:Here you go, put this into irrlichts plugin directory and off you go.

http://code.google.com/p/tubras/source/ ... rrlicht.py
You meant blender's plugin dir, didn't you?
Working on game: Marrbles (Currently stopped).
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Re: Complete Level File

Post by ACE247 »

yeah did... Oops :oops:
Must have been awake through the whole night :)
Post Reply