Camera Control!!!
by Alan Murphy · in General Discussion · 05/21/2009 (6:13 am) · 6 replies
Hi, I am doing a project using head tracking to create a 3d effect! I have a piece of software written in C++, which will track head movement through a webcam and returns co-ordinates as to the users head position as regards position and rotation (faceAPI)!Simply, with no character on screen, I am trying to go about using these co-ordinates to control the camera in torque thus creating a 3d effect! I know that I need to control the camera in much the same way as the mouse would using pitch and yaw! I can set the minLookAngle and maxLookAngle to control the pitch and the maxFreelookAngle to control the yaw of the camera ands allow the FOV (Field of View) of the camera control the zooming in and out (moving head in and away from the screen)!
My problem is in encorporating the C++ code with the C script in torque! If you visit my blog at
http://headtrackingthesis.blogspot.com/
I have tracked my progress to date and you can see the software in operation. I simply ran it in Visual Studio C++ 2008. Does anyone have any idea how i could encorporate the two pieces of software?
Would it be possible to have the faceAPI running behind inside my torque project and extract the data from it in there? This seems logical but I am confused as to how to extract the information outputted from the C++ code using Torques C Script! Would really appreciate it if anybody could shine any light on the matter or give their opinion! Thanks! :)
My problem is in encorporating the C++ code with the C script in torque! If you visit my blog at
http://headtrackingthesis.blogspot.com/
I have tracked my progress to date and you can see the software in operation. I simply ran it in Visual Studio C++ 2008. Does anyone have any idea how i could encorporate the two pieces of software?
Would it be possible to have the faceAPI running behind inside my torque project and extract the data from it in there? This seems logical but I am confused as to how to extract the information outputted from the C++ code using Torques C Script! Would really appreciate it if anybody could shine any light on the matter or give their opinion! Thanks! :)
#2
05/21/2009 (6:49 am)
Torque is written in C++, if you buy it you get the C++ source, which is the best way to integrate your head tracking software.
#3
05/21/2009 (7:06 am)
Thanks you guys.. help is really appreciated and sorry for the trouble! :)
#4
I am using the TGE 1.4.2 version of torque, is it just the scripts that are included or is the source not available here too?
Thanks Again!
05/21/2009 (7:54 am)
Actually one other question..I am using the TGE 1.4.2 version of torque, is it just the scripts that are included or is the source not available here too?
Thanks Again!
#5
05/21/2009 (7:57 am)
Source is included with TGE 1.4.x too.
#6
05/21/2009 (7:59 am)
Thanks!
Torque 3D Owner Sherman Pendley
Oh, and please - pick a forum. There's absolutely no need to spam every forum in sight with the same question. Thanks.