Page 1 of 1

Loading irrfile in existing scene

Posted: Wed Oct 18, 2006 8:32 pm
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

Posted: Wed Oct 18, 2006 10:06 pm
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.