The macro seems to be coming along nicely, with just one minor hiccup --
it probably only works well in the positive z-axis... I'm having a
little trouble figuring out how to align the center of my point cloud
with an arbitrary vector, and it's probably so simple that I'll kick myself.
I made a slight alteration, rather than using a union of spheres, I now
use a blob. It seems to give a more connected look.
getting it to use splines was easier than I thought it would be. I
figured - because I hadn't read the documentation on splines - that I
would have to handle interpolation myself (SO glad that I don't...)
still have to parameterise quite a bit of this code before I can
actually make it into a macro, and I plan to add a few things, like
angle adjustment for the nozzle and a pressure setting to allow a more
airbrush-like operation.
basic parameters so far:
flow_rate -> number of particles per second.
duration -> number of seconds (dependant on clock if animation is on)
animate -> boolean, controls whether the spray is animated in
animations. setting this to false makes the spraypaint effect render
complete.
eSpline -> controls the position of the emitter over time.
tSpline -> location of the target over time.
stencil -> a black and white pigment to be used as a stencil. optional.
planned additions:
pressure -> applies a modifier to both flow_rate and angle to give a
different scattering.
I've attached several images for your perusal. As usual, comments and
suggestions are welcome.
Regards,
A.D.B.
Post a reply to this message
Attachments:
Download 'spraycan2-1.png' (639 KB)
Download 'spraycan2-2.png' (488 KB)
Download 'spraycan2-3.png' (525 KB)
Download 'spraycan2-5.png' (605 KB)
Download 'spraycan2.png' (540 KB)
Preview of image 'spraycan2-1.png'
![spraycan2-1.png](/povray.binaries.images/attachment/%3C507bbb8a%40news.povray.org%3E/spraycan2-1.png?ttop=443866&toff=1750&preview=1)
Preview of image 'spraycan2-2.png'
![spraycan2-2.png](/povray.binaries.images/attachment/%3C507bbb8a%40news.povray.org%3E/spraycan2-2.png?ttop=443866&toff=1750&preview=1)
Preview of image 'spraycan2-3.png'
![spraycan2-3.png](/povray.binaries.images/attachment/%3C507bbb8a%40news.povray.org%3E/spraycan2-3.png?ttop=443866&toff=1750&preview=1)
Preview of image 'spraycan2-5.png'
![spraycan2-5.png](/povray.binaries.images/attachment/%3C507bbb8a%40news.povray.org%3E/spraycan2-5.png?ttop=443866&toff=1750&preview=1)
Preview of image 'spraycan2.png'
![spraycan2.png](/povray.binaries.images/attachment/%3C507bbb8a%40news.povray.org%3E/spraycan2.png?ttop=443866&toff=1750&preview=1)
|