[solved] Problems with getting custom Camera to work

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gunnicom
Posts: 13
Joined: Tue Apr 24, 2007 9:32 pm

[solved] Problems with getting custom Camera to work

Post by gunnicom »

I tried to use the RTSCamera from this post with irrlicht 1.3
http://irrlicht.sourceforge.net/phpBB2/ ... p?p=110533
(I changed the things mentioned in the thread)

But i only get a black screen. When i use a normal camera i can see my terrain and mesh. Here is the code i tried with (functional cam is commented):

Code: Select all

 RTSCamera* camera = new RTSCamera(device,smgr->getRootSceneNode(),smgr,-1,1000.0f,10.0f,10.0f); 
 camera->setPosition(vector3df(1000,1000,1000));
 camera->setTarget(core::vector3df(0,0,0));
//	scene::ICameraSceneNode* camera = smgr->addCameraSceneNode();
//	camera->setPosition(core::vector3df(1000,1000,1000));
//	camera->setTarget(core::vector3df(0,0,0));
What did i miss, what is my fault?
Last edited by gunnicom on Wed Apr 25, 2007 6:36 pm, edited 1 time in total.
gunnicom
Posts: 13
Joined: Tue Apr 24, 2007 9:32 pm

Post by gunnicom »

Sry, i found the mistake. I just missed one OnPreRender ...
Post Reply