Need help with my camera snippet. - Solved
-
- Posts: 18
- Joined: Thu Apr 24, 2014 3:01 am
Re: Need help with my camera snippet.
That's a good point. I should have realized that when I realized the program didn't return 0. Thanks!
-
- Posts: 18
- Joined: Thu Apr 24, 2014 3:01 am
Re: Need help with my camera snippet.
Thanks so much for the help, Seven! My camera is now fully functional, but there's only one minor problem.
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
Code: Select all
viewcam = smgr->addCameraSceneNode(0, vector3df(t,i,u), vector3df(0,0,0),name);
Thanks!
- FlyingSauce
Re: Need help with my camera snippet.
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 18
- Joined: Thu Apr 24, 2014 3:01 am
Re: Need help with my camera snippet.
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!
Re: Need help with my camera snippet. - Solved
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.
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.