POV-Ray : Newsgroups : povray.binaries.images : Two steps forward, one step back Server Time
8 Nov 2024 10:27:54 EST (-0500)
  Two steps forward, one step back (Message 1 to 9 of 9)  
From: ShadowMage3D
Subject: Two steps forward, one step back
Date: 20 Oct 2012 03:44:15
Message: <5082564f@news.povray.org>
So... still working on my spraypaint macro... and it seems to be 
progressing fairly well, but I'm having a slight problem that I just 
can't seem to pin down.

The image below should illustrate, but to explain, with a random 
distribution over an angle of about 30 degrees, my math tells me that 
with the emitter at a distance of 1 unit (on a scale of 1 unit = 1 ft), 
the paint swath should be six inches wide.

The problem is that it's clearly not that wide...

I'm perfectly willing to accept that the distribution is flawed in some 
way (probably, a normal distribution doesn't accurately model the real 
thing)

at any rate, I'm posting the code for a couple of test scenes with the 
macro include and some pictures, I'd appreciate it if someone could give 
me some clues here.

I've also attached the aperture science logo image I'm using as a stencil.

Also, I tend to use an extended color library kolors.inc which I haven't 
attached, but it should be available if you google it. It's not really 
necessary though.

Regards,
A.D.B.


Post a reply to this message


Attachments:
Download 'spraycan6.png' (591 KB) Download 'utf-8' (3 KB) Download 'crate2.png' (352 KB) Download 'utf-8' (6 KB) Download 'utf-8' (4 KB) Download 'aperture_science_logo_800.jpg' (66 KB)

Preview of image 'spraycan6.png'
spraycan6.png

Preview of image 'crate2.png'
crate2.png

Preview of image 'aperture_science_logo_800.jpg'
aperture_science_logo_800.jpg


 

From: Anthony D  Baye
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 04:10:01
Message: <web.5083ad99befa8986d97ee2b90@news.povray.org>
ShadowMage3D <Sha### [at] spamnomorehotmailcom> wrote:
> So... still working on my spraypaint macro... and it seems to be
> progressing fairly well, but I'm having a slight problem that I just
> can't seem to pin down.
>
> The image below should illustrate, but to explain, with a random
> distribution over an angle of about 30 degrees, my math tells me that
> with the emitter at a distance of 1 unit (on a scale of 1 unit = 1 ft),
> the paint swath should be six inches wide.
>
> The problem is that it's clearly not that wide...
>
> I'm perfectly willing to accept that the distribution is flawed in some
> way (probably, a normal distribution doesn't accurately model the real
> thing)
>
> at any rate, I'm posting the code for a couple of test scenes with the
> macro include and some pictures, I'd appreciate it if someone could give
> me some clues here.
>
> I've also attached the aperture science logo image I'm using as a stencil.
>
> Also, I tend to use an extended color library kolors.inc which I haven't
> attached, but it should be available if you google it. It's not really
> necessary though.
>
> Regards,
> A.D.B.

After a little more experimentation, I finally managed to get a credible result,
but it takes about 20 minutes to parse.

of course, I may be using heftier settings than necessary.

I increased the dispersal angle to 60 degrees, which didn't seem to have much
effect by itself.  I also increased the particle count to 60k and the Duration
to 30.  with a modified path based on a sine wave, I got the attached image.

all things considered, it's not a bad start, but I don't know if it will ever be
terribly practical, which is unfortunate.

I'll keep poking at it, and see if I can't make it faster.

Regards,
A.D.B.


Post a reply to this message


Attachments:
Download 'crate2.png' (360 KB)

Preview of image 'crate2.png'
crate2.png


 

From: Jaime Vives Piqueres
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 05:38:37
Message: <5083c29d$1@news.povray.org>
On 21/10/12 10:08, Anthony D. Baye wrote:
> After a little more experimentation, I finally managed to get a
> credible result, but it takes about 20 minutes to parse.
>
> of course, I may be using heftier settings than necessary.
>
> I increased the dispersal angle to 60 degrees, which didn't seem to
> have much effect by itself.  I also increased the particle count to
> 60k and the Duration to 30.  with a modified path based on a sine
> wave, I got the attached image.
>
> all things considered, it's not a bad start, but I don't know if it
> will ever be terribly practical, which is unfortunate.
>
> I'll keep poking at it, and see if I can't make it faster.

   Looking very good! It may have inconveniences, but this method also
has plenty of advantages... for example, an image map projection to the
whole object will give you paint in wrong places, like the sides of he
boards, but this spray-can method gives the Real Thing.

   Hey, you could even become a virtual graffiti artist now!

--
Jaime


Post a reply to this message

From: Thomas de Groot
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 07:18:28
Message: <5083da04$1@news.povray.org>
On 21-10-2012 10:08, Anthony D. Baye wrote:
> all things considered, it's not a bad start, but I don't know if it will ever be
> terribly practical, which is unfortunate.
>

Like Jaime, I think this is an excellent method, worth the inconveniences.

Now a little nitpicking ;-)  How about the /sides/ of the cross boards? 
They do not seem to receive paint, which they should, maybe as streaks...

Thomas


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 12:15:01
Message: <web.50841f26befa8986d97ee2b90@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 21-10-2012 10:08, Anthony D. Baye wrote:
> > all things considered, it's not a bad start, but I don't know if it will ever be
> > terribly practical, which is unfortunate.
> >
>
> Like Jaime, I think this is an excellent method, worth the inconveniences.
>
Thanks.  I appreciate the complement.

> Now a little nitpicking ;-)  How about the /sides/ of the cross boards?
> They do not seem to receive paint, which they should, maybe as streaks...
>
> Thomas

The sides of the boards do receive paint but, because the boards are iso's
rather than boxes, the sides are partially occluded.  One could remedy this by
altering the target path slightly in strategic places.  It may be automated, but
it doesn't remove the artistic element in the slightest.

Regards,
A.D.B.


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 15:15:00
Message: <web.50844865befa8986d97ee2b90@news.povray.org>
"Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:
> Thomas de Groot <tho### [at] degrootorg> wrote:
> > On 21-10-2012 10:08, Anthony D. Baye wrote:
> > > all things considered, it's not a bad start, but I don't know if it will ever be
> > > terribly practical, which is unfortunate.
> > >
> >
> > Like Jaime, I think this is an excellent method, worth the inconveniences.
> >
> Thanks.  I appreciate the complement.
>
> > Now a little nitpicking ;-)  How about the /sides/ of the cross boards?
> > They do not seem to receive paint, which they should, maybe as streaks...
> >
> > Thomas
>
> The sides of the boards do receive paint but, because the boards are iso's
> rather than boxes, the sides are partially occluded.  One could remedy this by
> altering the target path slightly in strategic places.  It may be automated, but
> it doesn't remove the artistic element in the slightest.
>
> Regards,
> A.D.B.

Ok, so this should help ease the pain of long parsing times. I added the ability
to save the result in an include file (last parameter is a filename, no
extension)

To say that this drastically cuts parse times for subsequent renders using the
include file would be an understatement.

I also modified the macro call so that, if you don't want to use a stencil, all
you have to do is give it a solid black pigment (pigment { rgb 0 } works just
fine).  this obviates the need for the Template_Type parameter, which has been
removed.

I'll upload the new version to p.b.u.

Regards,
A.D.B.


Post a reply to this message

From: Alain
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 17:17:25
Message: <50846665$1@news.povray.org>

> On 21-10-2012 10:08, Anthony D. Baye wrote:
>> all things considered, it's not a bad start, but I don't know if it
>> will ever be
>> terribly practical, which is unfortunate.
>>
>
> Like Jaime, I think this is an excellent method, worth the inconveniences.
>
> Now a little nitpicking ;-)  How about the /sides/ of the cross boards?
> They do not seem to receive paint, which they should, maybe as streaks...
>
> Thomas
>
>
In real life, it should be similar. Those edges are about parallel to 
the path of the particles whitch preclude particles from touching them.

As for the particles path, using the sine? Sould'nt you use the tangent 
of the angle instead? After all, the tangent is the function of the 
projection of an angle on a line/plane tangent to the circle/sphere, 

travel parallel to the line/plane in this case.


Alain


Post a reply to this message

From: Anthony D  Baye
Subject: Re: Two steps forward, one step back
Date: 21 Oct 2012 19:00:01
Message: <web.50847dedbefa8986d97ee2b90@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > On 21-10-2012 10:08, Anthony D. Baye wrote:
> >> all things considered, it's not a bad start, but I don't know if it
> >> will ever be
> >> terribly practical, which is unfortunate.
> >>
> >
> > Like Jaime, I think this is an excellent method, worth the inconveniences.
> >
> > Now a little nitpicking ;-)  How about the /sides/ of the cross boards?
> > They do not seem to receive paint, which they should, maybe as streaks...
> >
> > Thomas
> >
> >
> In real life, it should be similar. Those edges are about parallel to
> the path of the particles whitch preclude particles from touching them.
>
> As for the particles path, using the sine? Sould'nt you use the tangent
> of the angle instead? After all, the tangent is the function of the
> projection of an angle on a line/plane tangent to the circle/sphere,

> travel parallel to the line/plane in this case.
>
>
> Alain

the path I was talking about has nothing to do with the trajectory (well not by
itself) it is a spline which determines the path of the target point as the
emitter moves (also based on a spline).

so the spline resembles a sine wave with a high frequency, hence the emitter
travels up and down as it sprays particles, and the target point moves
similarly.

Regards,
A.D.B.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Two steps forward, one step back
Date: 22 Oct 2012 03:02:02
Message: <5084ef6a$1@news.povray.org>
On 21-10-2012 23:18, Alain wrote:

>> Now a little nitpicking ;-)  How about the /sides/ of the cross boards?
>> They do not seem to receive paint, which they should, maybe as streaks...
>>
>> Thomas
>>
>>
> In real life, it should be similar. Those edges are about parallel to
> the path of the particles whitch preclude particles from touching them.

Yeah, but in real life the painter would never hold the spay can at 
exactly 90 degrees the whole time, and I suppose the spray would show 
some random perturbations too... not even talking about a sudden gust of 
wind ;-)

Thomas


Post a reply to this message

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