I've a "tunnel drive" with proscene and im wondering how i am able to rotate the camera a little bit around it's own axes, so that the textcirles seems not to be on one line but descending or ascending.
you may call scene.camera().setPosition() together with scene.camera().lookAt() to position and orient the camera before scene.camera().addKeyFrameToPath() (please see the CameraInterpolation example). The interpolated camera frame positions and orientations depend upon the added keyFrames (see Catmull Rom spline). You can also use any other camera method that define its position and orientation before setting the keyFrame (please refer to the camera API).
so far - so clear, many thanks. another item: when im driving through this tunnel, i want to be able to move the camera to the right or left, depending on a variable which changes all the time (Which i get from the kinect, but programmatically i have a variable with an amount starting from 0 - width (0 - 1024 as example).
and asking myself if its what i need. I want to manipulate an existing, interpolated path during I am on the camera drive. Im very sorry about my basic questions - but im not a programmer and without some tutorials im sometimes a bit helpless.
do you mean to rotate the camera around it's y-axis while interpolating its position? i can't test it from where i'm (but till june). however the kfi is meant to interpolate both, the position and the orientation of the frame. you can try to set the camera in "first person" (just press the space bar) and "look-around" while interpolation takes place and see if that does the trick for you. a better approach would be to interpolate and extra frame and retrieve its interpolated positions (frame.postion()) and feed them to the camera frame (camera.frame().setposition()). see the frameinterpolation example.
Leave a comment on nakednous's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic