Apr 8, 2012

New gizmo - PaintTrajectory

Hi,

I was watching some nice motiondesign lately (from Polynoid, great artists) and was wondering how to create nice animating thin lines in 3d space. Or at least how to draw a motionpath of something in 3d. I was experimenting with particles for a while but I found that way slow for this. But the great new python docs comes to rescue! I remembered a 2d solution for drawing a track with a paint node. And another one with projecting a 3d point to screenspace. So almost all credit goes to docs writer(s) (Frank Rueter I assume) I hacked together the 2 scripts, a bit rewrite here and there, and created a gizmo for it.
What is does:
Connect the viewing camera to cam input, and link a (animated) 3d point (that can be seen by the camera) to motionpath knob, and run. Spits out a rotopaint with the trajectory painted. In the paint node on stroke tab, set the pressure alters to size, and uncheck opacity (sorry, do it manually at this time), and you can see that the further the point from camera, the thinner the painted line. Change the brush size to make it thicker. If the bounding box clips the stroke, put a crop before the rotopaint.
Here is a picture showing what I'm talking about:



I hope someone find it useful, you can download it from here.
It's still very alpha, keep in mind.
By the way I plan to copy all my extension to nukepedia soon, just need to find some time to organize them :)

No comments:

Post a Comment