Guys,
I am working in my graduation Project, which is basically about Image Recognition using Matlab to a video stram taken by a regular PC Webcam!
The idea that i take a picture every 1 sec. to a human face, analyze it, and return whether he/she is looking left or right, then i will generate a command to the ICameraSceneNode to turn based on the analyzed direction!
I used Matlab to analyze the face, and wrote the result on a text file, which is read by C++ ... but i don't know how to make the Camera turn into the direction i want without using the MOUSE..
Any help please!
How to Control the CameraFPS using a regular webcam!
You can always use setPosition/setRotation (instead of setTarget, I really don't like it)
in this way:
It works really well 
I don't know why lot of people here don't use setRotation in this way and
they use instead setTarget in a very complicated way.
bye
in this way:
Code: Select all
ICameraSceneNode *camera;
camera = smgr->addCameraSceneNodeFPS (0, 100, 500);
camera->setInputReceiverEnabled (false);
then:
camera->setPosition (irr::core::vector3df (posx, posy, posz));
camera->setRotation (irr::core::vector3df (rotx, roty,rotz));
I don't know why lot of people here don't use setRotation in this way and
they use instead setTarget in a very complicated way.
bye
Your project sounds a lot like the device made by this company http://www.naturalpoint.com/
question
How are you receiving the input from the cam for irrlicht callback?