Loading irrfile in existing scene

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.
Post Reply
rikyoh
Posts: 14
Joined: Fri Sep 08, 2006 1:02 pm

Loading irrfile in existing scene

Post by rikyoh »

Hi,

it seems that when I load an irrfile, it first clears my scene. Is there a way to load an irrfile into an existing scene, so that the scenenodes from the file are just added to it?

Bye
Riky
Amt0571
Posts: 128
Joined: Mon Mar 06, 2006 6:29 pm

Post by Amt0571 »

Hmmm, I had this problem and it was caused by a "bad" header in the irr file. I had to replace it with this one:

<attributes>
<string name="Name" value="root" />
<int name="Id" value="-1" />
<vector3d name="Position" value="0.000000, 0.000000, 0.000000" />
<vector3d name="Rotation" value="0.000000, 0.000000, 0.000000" />
<vector3d name="Scale" value="1.000000, 1.000000, 1.000000" />
<bool name="Visible" value="true" />
<bool name="AutomaticCulling" value="true" />
<bool name="DebugDataVisible" value="false" />
<bool name="IsDebugObject" value="false" />
<colorf name="AmbientLight" value="0.000000, 0.000000, 0.000000, 0.000000" />
</attributes>

After this, everything worked well.
Post Reply