Need help with my camera snippet. - Solved

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.
FlyingSauce
Posts: 18
Joined: Thu Apr 24, 2014 3:01 am

Re: Need help with my camera snippet.

Post by FlyingSauce »

That's a good point. I should have realized that when I realized the program didn't return 0. Thanks!
FlyingSauce
Posts: 18
Joined: Thu Apr 24, 2014 3:01 am

Re: Need help with my camera snippet.

Post by FlyingSauce »

Thanks so much for the help, Seven! My camera is now fully functional, but there's only one minor problem.

Code: Select all

viewcam = smgr->addCameraSceneNode(0, vector3df(t,i,u), vector3df(0,0,0),name);
I can only guess that the function addCameraSceneNode(), by default, also activates the camera. I only want the camera to be activated via the Activate() function, that way when the game starts, I can just add all of the cameras, and only activate them when needed. Is there perhaps another function that could do this?


Thanks!


- FlyingSauce
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Need help with my camera snippet.

Post by CuteAlien »

Check last parameter in documentation: http://irrlicht.sourceforge.net/docu/cl ... 4f58c7d1f2

Also 4th parameter is neither about a name nor is it of type char.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
FlyingSauce
Posts: 18
Joined: Thu Apr 24, 2014 3:01 am

Re: Need help with my camera snippet.

Post by FlyingSauce »

CuteAlien wrote:Check last parameter in documentation: http://irrlicht.sourceforge.net/docu/cl ... 4f58c7d1f2

Also 4th parameter is neither about a name nor is it of type char.


Perfect, thanks to all of you!
Asimov
Posts: 246
Joined: Thu Dec 04, 2014 7:41 pm
Contact:

Re: Need help with my camera snippet. - Solved

Post by Asimov »

Hi FlyingSauce,

Would you let me see your finished camera class?

I have a list of things I want to work out you see.

I want to create a camera class, and a mesh load class, so I would love to study your camera class code to see if it can push me in the right direction.

I would like to see your main.cpp also for more pointers.

I have been trawling the forum for snippets of code to help me learn.
Post Reply