Page 1 of 2

Complete Level File

Posted: Wed Jan 11, 2012 12:58 am
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.

Re: Complete Level File

Posted: Wed Jan 11, 2012 1:12 am
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.

Re: Complete Level File

Posted: Wed Jan 11, 2012 8:00 am
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...)

Re: Complete Level File

Posted: Wed Jan 11, 2012 8:36 am
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

Re: Complete Level File

Posted: Wed Jan 11, 2012 11:18 am
by Cube_
well yes. but I still make all the mesh in blender (Separate files so I cane asily reuse the same mesh though ;) )

Re: Complete Level File

Posted: Wed Jan 11, 2012 12:24 pm
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.

Re: Complete Level File

Posted: Thu Jan 12, 2012 7:18 am
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!)

Re: Complete Level File

Posted: Thu Jan 12, 2012 7:49 am
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. ;)

Re: Complete Level File

Posted: Thu Jan 12, 2012 11:07 pm
by Cube_
**Jaw dropped four floors**
o.0
that is indeed VERY awesome.
thanks for the tip!

Re: Complete Level File

Posted: Sun Jan 22, 2012 1:34 am
by Grumpy
ACE247:
Could you drop us a link to the irrblender 0.6 Blender plugin from pc0de's svn ???
Thanks.

Re: Complete Level File

Posted: Sun Jan 22, 2012 4:05 am
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.

Re: Complete Level File

Posted: Sun Jan 22, 2012 6:55 am
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/

Re: Complete Level File

Posted: Sun Jan 22, 2012 7:34 am
by mongoose7
There is a link on the page to view the raw file. Might need that as well.

Re: Complete Level File

Posted: Sun Jan 22, 2012 7:36 pm
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?

Re: Complete Level File

Posted: Wed Feb 01, 2012 7:04 pm
by ACE247
yeah did... Oops :oops:
Must have been awake through the whole night :)