pepote
20-06-2007 22:32:44
I need someone will talk me if I'm using correctly the OSMSceneLoader_2
Why we need pass to OSMSceneLoader a SceneManager? In 3DMax we create one to it, really?
private void CreateScene()
{
SceneManager mgr = mRoot.CreateSceneManager(SceneType.);
cam = mgr.CreateCamera("Camera");
mgr.AmbientLight = ColourValue.Red;
mgr.ShadowTechnique = ShadowTechnique.SHADOWTYPE_STENCIL_ADDITIVE;
CreateViewPort(cam);
//Creamos un personaje
ent = mgr.CreateEntity("ninja", "ninja.mesh");
ent.CastShadows = true;
ninjaNode = mgr.RootSceneNode.CreateChildSceneNode();
ninjaNode.AttachObject(ent);
cam.Position = new Mogre.Vector3(0, 200, -600);
cam.FarClipDistance = 5;
cam.LookAt(0, 0, 0);
//mgr.SetShadowUseInfiniteFarPlane(false);
OSMScene loader = new OSMScene(mgr, mWindow);
loader.Initialize("maderaypiedra.osm");
loader.CreateScene(mgr.RootSceneNode);
}
Why we need pass to OSMSceneLoader a SceneManager? In 3DMax we create one to it, really?