[SOLVED] Problem loading a scene

Hi, urhofans.

My new problem is when I try to load a scene in .xml. I have a black screen.
I created a camera, with light and a pretty tea pot.

XMLFile* sceneFile = cache->GetResource<XMLFile>("Scenes/MiEscena.xml"); scene_->LoadXML(sceneFile->GetRoot());

Do I need add something else to the proyect?
Thanks!

You created a Camera, but did you bind it to the Viewport?

Urho3D::SharedPtr<Urho3D::Viewport> viewport(new Urho3D::Viewport(context_, _scene, camera));
GetSubsystem<Urho3D::Renderer>()->SetViewport(0, viewport);

Thank you! :smiley: