protected override void SetupContent()
{
SceneManager.SetSkyBox( true, "Examples/EveningSkyBox", 5000 );
// dim orange ambient and two bright orange lights to match the skybox
SceneManager.AmbientLight = new ColorEx( 0.3f, 0.2f, 0.0f );
Light light = SceneManager.CreateLight( "Light1" );
light.Position = new Vector3( 2000, 1000, -1000 );
light.Diffuse = new ColorEx( 1.0f, 0.5f, 0.0f );
light = SceneManager.CreateLight( "Light2" );
light.Position = new Vector3( 2000, 1000, 1000 );
light.Diffuse = new ColorEx( 1.0f, 0.5f, 0.0f );
_pivot = SceneManager.RootSceneNode.CreateChildSceneNode(); // create a pivot node
// create a child node and attach ogre head and some smoke to it
SceneNode headNode = _pivot.CreateChildSceneNode( new Vector3( 100, 0, 0 ) );
headNode.AttachObject( SceneManager.CreateEntity( "Head", "ogrehead.mesh" ) );
headNode.AttachObject( ParticleSystemManager.Instance.CreateSystem( "Smoke", "Examples/Smoke" ) );
Camera.Position = new Vector3( 0.0f, 30.0f, 350.0f );
base.SetupContent();
}
}