[2.1] switching camera

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


xmanneke
Gnoblar
Posts: 14
Joined: Fri Jan 15, 2010 8:31 pm

[2.1] switching camera

Post by xmanneke »

Hi,

For my mini game i want to create 2 camera objects and then be able to switch between them with a button.
The camera creation i can do but the switching i cannot find where and how i would need to do that.
In the scenemanager i can only get a list of camera's but not set the camera.
any ideas?

thx
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 26

Re: [2.1] switching camera

Post by Slicky »

Normally a camera is attached to a scenenode. Just detach and attach it to a new node.