-
Notifications
You must be signed in to change notification settings - Fork 3
Make sure your Billboard
has Width set to 2.
Many of the Generators create infinite sized images (e.g. Constant Color
, Checkerboard
, etc). Pass this Image through an Image Crop
patch and set the Crop Width and Crop Height to the size you want the Image. You can set Crop X and Crop Y to choose which part of the infinite image you want to crop, but you'll usually just leave these set to 0.
Use Constant Color
. You'll need to crop the image (see above).
Drag a movie in from the Finder (or equivalently use the Movie Importer
patch). Open the patch up in the Inspector and go to Settings (⌘2). Check "Asynchronous Mode". This will make the movie play sound and give you extra input controls.
To scrub through the movie, you'll need to dynamically adjust the movie's Selection Start (i.e. change the start time of the movie, expressed in seconds). However that's not all. Whenever you adjust the start time, you'll also need to flicker the Reset Signal pin on the movie. You can do this using a Watcher
node. See the video scrubber.qtz example in additional examples.
Put a Clear
patch on the bottom layer inside your Render in Image
. Otherwise anything that is "transparent" will show up as unpredictable video card artifacts.
You can use the Mathematical Expression
patch to scale your value accordingly.
But because this comes up so often, and because QC doesn't have a linear map patch as it should (like map in Processing for example), I created a Linear Map
macro that you can use. Find it in the utility folder.
Use the Smooth
patch. By adjusting the Increasing Duration and Decreasing Duration (expressed in seconds), you can adjust the "attack" and "decay" of the patch.
Smooth
is also useful when hooked in to a boolean value (e.g. Mouse
Left Button), which you can think of as a very jittery value that ranges between 0 and 1.
See class 3.