Page 1 of 1

Custom properties in map XML

Posted: Mon Jul 17, 2017 11:21 am
by lenchis001
Hello everyone! Say me please: can i define custom scene node properties in map XML? If "yes", then how can i read it and where can i find sample?

Thank you.

Re: Custom properties in map XML

Posted: Tue Jul 18, 2017 6:01 am
by Brainsaw
Do you mean custom scene nodes in files that can be loaded using ISceneManager::loadScene? You can create your own custom scene nodes to load and save data to these files (http://irrlicht.sourceforge.net/docu/example003.html is a good starting point). I am (still) using IrrEdit to create the scene files for my games, and it is possible to create plugins for this application to have access to the custom nodes. It took me (back then) some time to figure out how to write the plugins (I think samples are included), but once you got that running it works really fine for me (I use my IrrEdit plugins to define the physical parts of the scene, see "IrrODE" (that project is outdated, but it includes a plugin for IrrEdit)