Hi guys,
I use Horde3D Scene Editor to create my scene and save it when done. In my program, I load all nodes using Horde3D functions and still have to do the configuration for some stuff such as:
// doing transform, is it done in SceneEditor already? Horde3D::setNodeTransform( env, 0, -20, 0, 0, 0, 0, 20, 20, 20 ); // for the environment ... // Add knight _knight = Horde3D::addNodes( RootNode, knightRes ); Horde3D::setNodeTransform( _knight, 0, 0, 0, 0, 180, 0, 0.1f, 0.1f, 0.1f ); // Add light source, light params configured in SceneEditor for what? NodeHandle light = Horde3D::addLightNode( RootNode, "Light1", 0, "LIGHTING", "SHADOWMAP" ); Horde3D::setNodeTransform( light, 0, 15, 10, -60, 0, 0, 1, 1, 1 ); Horde3D::setNodeParamf( light, LightNodeParams::Radius, 1000 ); Horde3D::setNodeParamf( light, LightNodeParams::FOV, 90 ); Horde3D::setNodeParami( light, LightNodeParams::ShadowMapCount, 1 ); Horde3D::setNodeParamf( light, LightNodeParams::ShadowMapBias, 0.0025f ); Horde3D::setNodeParamf( light, LightNodeParams::Col_R, 1.0f ); Horde3D::setNodeParamf( light, LightNodeParams::Col_G, 0.8f ); Horde3D::setNodeParamf( light, LightNodeParams::Col_B, 0.7f ); ... The question is, all these configurations (camera position, light's parameters, objects' parameters) have already done in SceneEditor, so are there any way to load all these stuff automatically? (with just one load statement)
Thanks in advance
|