|
I'm having a hard time with a program I'm making. in my program there is a frame - a window I want my camera to look out of no matter where the camera is. this means when the camera strife's left it has to look right, when the camera moves along the y axis it has to look down, and when the camera moves backwards it has to zoom in. I have the x axis and the y axis working fine enough for now but the zoom in and out isn't working so well at all. if you're gonna help me with this its going to take work, thanks so so so much: Here's the set up I have: 1 camera at x = 0 y = 0 z = 0 a terrain at x =-100 y = -1.080001 z = -445.7925 4 boxes forming a visual frame in the camera's view so I can see if its working the camera has these two scripts attached: FPSWalker.js which make the camera have a character controller and lets it move around Stereoscript.js which makes the camera have the correct angles to look at the same window no matter where it travels. (this is the script i need help writing.) here are the proceedures in the StereoScript.js that I know are working perfectly:
here's the proceedure on the stereo script I'm having trouble with: complete with comments of whats going on and the troubles I have:
now I'll include some pictures of what I mean. the Yellow lines were drawn on top of the screen prints to show where I want the camera angles to be. good
bad
and here are some other views that are right and wrong: good
good
bad
bad
this is what I'm trying to recreate:
Even if you just have pointers of ideas please respond I've spent hours and hours, well days really on this project and I need to make head way or drop it. please please help! thanks!
(comments are locked)
|
|
hey jordan, i'm working on such thing to FaceApi Headtracking mit unity but i can't understand the necessary steps for the asymmetric projection. have you finally finished it? greetings, jooki I did finish it. and then I scrapped the whole project. if you're interested in my code I'll share it with you but I don't know if I can remember how it all works.
Feb 14 '11 at 06:34 AM
Jordan Miller 2
yeah, i would like to see how you finally realized that thing! would you post a link or something? thanx alot!
Feb 16 '11 at 02:58 AM
jooki
(comments are locked)
|







