Getting stuck a bit at the beginning

Cronk

30-06-2008 18:24:12

Hi there!
Looks like I need to get some help to start using NxOgre. For testing NxOgre I just created a simple Ogre application like in Basic Tutorial 6 and changed the setupScene() as following:
SceneManager* mgr = mRoot->createSceneManager(Ogre::ST_EXTERIOR_REAL_FAR, "Default SceneManager");
Camera* cam = mgr->createCamera("Camera");
mWorld = new World("time-controller: ogre");
mgr->setAmbientLight(ColourValue(0, 0, 0));

mScene = mWorld->createScene("myScene", "renderer: ogre, controller: ogre, gravity: yes, floor: yes");
cam->setPosition(Vector3(150, 550, 1000));
cam->pitch(Degree(-30));


The problem is, that I just get weird stuff on the screen. To be exact I see snippets (scaled, cut and everything) of textures from the game I was playing before (Guild Wars). Details here.

reptor

30-06-2008 19:33:04

Hello,

before you continue make sure you are using Ogre3D 1.4.9.

I don't know if it fixes your problem, but it is possible. There were some fixes made to it because of some problems related to Nvidia drivers.

betajaen

30-06-2008 19:42:43

You haven't setup a viewport or bound a camera to it.

Cronk

30-06-2008 20:50:42

:roll: Sometimes I'm quiet stupid.... Thanks, added a viewport and it works perfectly.