jit.gl.camera is the camera object. It starts off at position 0, 0, 2. That's 2 units "out towards the screen". Z positive is out of the screen towards you. You can set the position using the @position attribute with floats. Or, you can drive the camera using WASD, QZ and the mouse. The default speed is a bit crazy, so you should probably lower it to about 10. @ui_listen lets you actively drive, @ease lets you tweak the easing of the motion. There are a few other parameters to tweak but these are the main ones. @tripod stops the camera from twisting on the Z axis.
one way of loading a movie file is to use the "jit.movie" object, with a few parameters. jit.movie @vol 0 @moviefile bball.mov the @vol 0 reduces the volume to zero, sometimes you don't want the audio from your video file @moviefile specifies the file. bball.mov is a built-in movie file. You might have a full path, or even a file on the desktop. eg. Desktop:/myname.mov The jit.movie object also needs a way to display - use a jit.pwindow. Plug the left output into the pwindow's left input. You'll also need to bang the jit.movie to update the pwindow! You could plug a button (b) into the jit.movie and keep pressing it......... But this is going to be annoying to do manually, so we can use a "metro" object (which is metronome) and specify how often we want to send a bang message. This is measured in milliseconds. To achieve 30 fps you'd use a value of 33. Because 1000/30 = 33.3333333333 So, hit n, type metro 33 then have that connected to the input of...
Comments
Post a Comment