camera allmost like Maya

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
random
Posts: 158
Joined: Wed Aug 11, 2010 6:01 am

camera allmost like Maya

Post by random »

Hello i was walking through the API and finaly found

Code: Select all

ISceneManager::addCameraSceneNodeMaya

and here http://irrlicht.sourceforge.net/docu/cl ... a086f68f3c i found this:
It is possible to send mouse and key events to the camera.

Most cameras may ignore this input, but camera scene nodes which are created for example with ISceneManager::addCameraSceneNodeMaya or ISceneManager::addCameraSceneNodeFPS, may want to get this input for changing their position, look at target or whatever.
well i whant something like the maya camera but with different set of controlls.

is it possible to do this with an event receiver and the usual camera scene node?
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

You can see the Maya camera "in action" in irrlicht-1.7.1\bin\Win32-VisualStudio\09.MeshViewer.exe" example. In fact, you can switch to fps or maya from the upper tab.

And yes, you can create many types of cameras. You need to create it the way the build-in cameras are made, but with your function "content", or you can create a simple class, which just does whatever you need to with the "usual" camera- position, rotate etc. First way is theoretically better, the second one is easier.
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
Post Reply