I've only camera Maya,
and its position is changed after smgr->drawAll()!
It seems that it's the function "onAnimate" ( executed in drawAll )
which changes the position.
// Before : 15,0,0
cameraMaya ->OnAnimate( 0 ) ;
// cameraMay is a irr::scene::ICameraSceneNode
// After 75, 0,0
smgr->drawAll();
May be it's only a wring parameter ?
I put here the xml generated, if someone can help !
[code]
BEFORE
<node type="camera">
<attributes>
<string name="Name" value="" />
<int name="Id" value="-1" />
<vector3d name="Position" value="75.000000, 5.000000, 5.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" />
<enum name="AutomaticCulling" value="box" />
<int name="DebugDataVisible" value="0" />
<bool name="IsDebugObject" value="false" />
<vector3d name="Target" value="5.000000, 5.000000, 5.000000" />
<vector3d name="UpVector" value="0.000000, 1.000000, 0.000000" />
<float name="Fovy" value="1.256637" />
<float name="Aspect" value="1.600000" />
<float name="ZNear" value="1.000000" />
<float name="ZFar" value="3000.000000" />
<bool name="Binding" value="false" />
</attributes>
<animators>
<attributes>
<string name="Type" value="cameraMaya" />
</attributes>
</animators>
</node>
[/code]
And after :
[code]
<node type="camera">
<attributes>
<string name="Name" value="" />
<int name="Id" value="-1" />
<vector3d name="Position" value="13.345222, 2.460011, 4.315732" />
<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" />
<enum name="AutomaticCulling" value="box" />
<int name="DebugDataVisible" value="0" />
<bool name="IsDebugObject" value="false" />
<vector3d name="Target" value="5.000000, 5.000000, 5.000000" />
<vector3d name="UpVector" value="0.000000, 1.000000, 0.000000" />
<float name="Fovy" value="1.256637" />
<float name="Aspect" value="1.600000" />
<float name="ZNear" value="1.000000" />
<float name="ZFar" value="3000.000000" />
<bool name="Binding" value="false" />
</attributes>
<animators>
<attributes>
<string name="Type" value="cameraMaya" />
</attributes>
</animators>
</node>
[/code]
OnAminate changes camera position !
worng order
sorry, but the xml sample i've put are in the wrong order. !