Wiley - > I'm trying to prototype a sort of draggable star map in Quartz composer- it > would be two layers of randomly scattered stars (each one a repeated .png).
One option would be to use the built-in Random Generator patch (or a Perlin noise generator, for example), then pass it through some filters to give it a more starfield-like appearance. > While the particles are static, when you click and drag with the mouse, each > layer would move at a different rate, creating parallax motion. This can be pretty easily achieved using the Sample & Hold patch --- take a sample of the mouse position when the mouse button is pressed, then subtract that starting position from the current mouse position, and you get the delta. Use another Sample & Hold to maintain the position once the mouse button is released. I've posted an example here: http://kineme.net/composition/smokris/StarfieldParallax Steve _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com