Default camera name?
-
- Posts: 17
- Joined: Mon Sep 17, 2012 8:54 pm
Default camera name?
Working off of Examples 2 and 13, I can't seem to find the default camera name when smgr->addCameraSceneNodeFPS(); is called. This makes it so setActiveCamera fails for anything other than 'fixedcam'
Re: Default camera name?
smgr->addCameraSceneNodeFPS() returns a pointer to an ICameraSceneNode, use that.
-
- Posts: 17
- Joined: Mon Sep 17, 2012 8:54 pm
Re: Default camera name?
Ah, that appears to work fine (I used scene::ICameraSceneNode* fpsCamera = smgr->addCameraSceneNodeFPS(); ). A question, is there a penalty or something for using the addcamera function multiple times, like if I wanted something else to have that pointer? I'm guessing the safest idea is just to use the pointer I have instead of calling another one, since I don't know if Irrlicht checks for a pre-existing camera when returning a pointer to the camera made by addCameraSceneNodeFPS().
Re: Default camera name?
That'd create multiple cameras, and then you'd have many pointers to different cams.