Making a character head move according to the Oculus.
We are creating an interactive experience (some might even call it a game). We have an avatar for the player - a Dog - with bones and animations. We want the player to be able to look at his own avatar from the avatar's point of view (eyes/head), and make him realize that he is a dog (or at least that he is looking through the eyes of a dog.) so we placed the camera in front of the dog’s head. The issue is when the player turns around (180 degrees), he sees the inside his own body, instead of just the outside, and some of the texture gets cut out, and that just ruins the experience we are trying to deliver.
The best solution in my opinion is making the head rotate and move according to the camera, and the entire body move according to the position and rotation of the head using Inverse Kinematics. (using the bones in the process) I saw a solution that does that successfully: https://www.youtube.com/watch?v=xJSMQutHtIQ but on this example he uses a mecanim character. So I don’t really know if I can use it in my case.
An optional solution is to make the Oculus determine the orientation of the head, and the position of the camera will be in front of his face, effectively determining the position of the camera, and making it “Orbit” around the head. In addition we can try and limit some of the weird movements a user can do with the Oculus by moving the dog on extreme unrealistic movement. (like making the dog turn when a player turns his head more than 150 degrees on each direction) Orienting the head must be done according to the bones.
Thanks!
The best solution in my opinion is making the head rotate and move according to the camera, and the entire body move according to the position and rotation of the head using Inverse Kinematics. (using the bones in the process) I saw a solution that does that successfully: https://www.youtube.com/watch?v=xJSMQutHtIQ but on this example he uses a mecanim character. So I don’t really know if I can use it in my case.
An optional solution is to make the Oculus determine the orientation of the head, and the position of the camera will be in front of his face, effectively determining the position of the camera, and making it “Orbit” around the head. In addition we can try and limit some of the weird movements a user can do with the Oculus by moving the dog on extreme unrealistic movement. (like making the dog turn when a player turns his head more than 150 degrees on each direction) Orienting the head must be done according to the bones.
Thanks!
