POV-Ray : Newsgroups : povray.binaries.images : Fun with spraypaint Server Time
8 Nov 2024 10:30:41 EST (-0500)
  Fun with spraypaint (Message 1 to 1 of 1)  
From: ShadowMage3D
Subject: Fun with spraypaint
Date: 15 Oct 2012 03:30:18
Message: <507bbb8a@news.povray.org>
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

Preview of image 'spraycan2-2.png'
spraycan2-2.png

Preview of image 'spraycan2-3.png'
spraycan2-3.png

Preview of image 'spraycan2-5.png'
spraycan2-5.png

Preview of image 'spraycan2.png'
spraycan2.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.