POV-Ray : Newsgroups : povray.binaries.animations : spraypaint in motion Server Time
22 Dec 2024 00:45:47 EST (-0500)
  spraypaint in motion (Message 1 to 4 of 4)  
From: Anthony D  Baye
Subject: spraypaint in motion
Date: 22 Jan 2015 00:20:00
Message: <web.54c08807cd9fb75bbd92286f0@news.povray.org>
first test of my animation mods to my spraypaint macro.  Very slow, at the
moment: took most of two days to render 1800 frames.

A lot of that is because of the way I'm storing the point data between frames.
I'm currently working on some improvements that could speed things up
significantly.

comments are always welcome.

Regards,
A.D.B.


Post a reply to this message


Attachments:
Download 'spray1.avi.dat' (158 KB)

From: Christian Froeschlin
Subject: Re: spraypaint in motion
Date: 22 Jan 2015 19:36:05
Message: <54c19775$1@news.povray.org>
On 22.01.2015 6:17, Anthony D. Baye wrote:

> A lot of that is because of the way I'm storing the point data between frames.
> I'm currently working on some improvements that could speed things up
> significantly.

You might benefit from persistent variables in Uberpov for this


Post a reply to this message

From: Anthony D  Baye
Subject: Re: spraypaint in motion
Date: 22 Jan 2015 21:15:00
Message: <web.54c1adcd5cb4e344bd92286f0@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> On 22.01.2015 6:17, Anthony D. Baye wrote:
>
> > A lot of that is because of the way I'm storing the point data between frames.
> > I'm currently working on some improvements that could speed things up
> > significantly.
>
> You might benefit from persistent variables in Uberpov for this

no worries.  I fixed it.  It's WAY faster now.

I simply changed the way I saved the data -- from an array of points to a union
for each frame, with an index file that gets rewritten every frame and forms a
union of the unions.  My test render only took about 8 hours.

Though I suppose persistent variables would save quite a bit of time, I really
want this to be useful in the official version.

I also fixed a problem with the random distribution of particles being the same
for each frame.

Regards,
A.D.B


Post a reply to this message


Attachments:
Download 'spray3.avi.dat' (82 KB)

From: Anthony D  Baye
Subject: Re: spraypaint in motion
Date: 22 Jan 2015 21:35:01
Message: <web.54c1b3215cb4e344bd92286f0@news.povray.org>
"Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:
> Christian Froeschlin <chr### [at] chrfrde> wrote:
> > On 22.01.2015 6:17, Anthony D. Baye wrote:
> >
> > > A lot of that is because of the way I'm storing the point data between frames.
> > > I'm currently working on some improvements that could speed things up
> > > significantly.
> >
> > You might benefit from persistent variables in Uberpov for this
>
> no worries.  I fixed it.  It's WAY faster now.
>
> I simply changed the way I saved the data -- from an array of points to a union
> for each frame, with an index file that gets rewritten every frame and forms a
> union of the unions.  My test render only took about 8 hours.
>
> Though I suppose persistent variables would save quite a bit of time, I really
> want this to be useful in the official version.
>
> I also fixed a problem with the random distribution of particles being the same
> for each frame.
>
> Regards,
> A.D.B

I should have mentioned that the previous animation was actually a shorter test,
only 15 seconds as compared to 30. just to test the random fix.

I have more ideas for this. I'm thinking about support for multiple files --
different files for each spraycan -- and I'm considering changing the way I
handle the setup.  Currently there are quite a few parameters, and I have some
ideas...

Here's the second test. It looked really bad with my first attempt at fixing the
rand bug.

Regards,
A.D.B.


Post a reply to this message


Attachments:
Download 'spray2.avi.dat' (163 KB)

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