Comment some problems in current .irr loader and offer workarounds.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5082 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2015-04-08 22:09:41 +00:00
parent 05ae7cf0ea
commit 491f571956
1 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,13 @@ int main(int argc, char** argv)
*/
// load the scene
/* You might have to work around some minor problems in current .irr loader:
- It can't load meshes relative to the .irr file, but only relative to the working directory.
So you might have to change your working directory to the path where the .irr file is in.
- When passing a custom parent node to loadScene then irr_scene attributes will be passed to that.
Usually not a problem, but for example AmbientLight will not change that way unless you create a custom
SceneNode type which can interpret those attributes.
*/
if (argc>1)
smgr->loadScene(argv[1]);
else