POV-Ray : Newsgroups : povray.animations : Can someone help the Particle System Noob Server Time
24 Nov 2024 05:42:48 EST (-0500)
  Can someone help the Particle System Noob (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Dave Brickell
Subject: Can someone help the Particle System Noob
Date: 13 Mar 2002 14:34:29
Message: <3c8fa9c5$1@news.povray.org>
Hi,

    I have finally found some time to have a dabble with a particle system.
I sorted out all of my code and after a little dabbling I have got it
producing images. The problem is when I come to do my animation. I have an
.ini file setup for the animation but how do I set all of my initial values
that I want to remain throughout the entire animation and how do I keep any
of the changed values that are made after one frame is drawn in the
preceding frame.

I hope that makes some sense and I am sorry if it has been asked before or
appears in the manual/faq.

Yours Thankfully

Dave


Post a reply to this message

From: Peter Popov
Subject: Re: Can someone help the Particle System Noob
Date: 13 Mar 2002 23:40:25
Message: <t1a09u8mum6sf9fu5ufu97b0d1795e7p2d@4ax.com>
On Tue, 12 Mar 2002 19:32:57 -0800, "Dave Brickell"
<d.b### [at] ntlworldnospamcom> wrote:

>how do I set all of my initial values
>that I want to remain throughout the entire animation and how do I keep any
>of the changed values that are made after one frame is drawn in the
>preceding frame.

Use the file i/o features of POV to write all necessary variables in a
file at the end of parsing each frame, and read them from that file at
the beginning of each frame. Look up section 6.2.3 in the POV 3.5
manual if you're not familiar with file i/o in POV.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Dave Brickell
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 05:12:45
Message: <3c90779d@news.povray.org>
Thank you Peter that is just what I was looking for. This will enable me to
keep the changed values of each of my particles between frames but I still
have a little problem. I have a #while loop at the start to set all of my
initial values and I only want to execute this once. If I have got my head
around this correctly would I just have a seperate script to write the
initial values and then run my main script reading these values in and
updating as I go.

Thanks again

Dave (particle system noobie)


Post a reply to this message

From: Dave Brickell
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 06:10:00
Message: <3c908508$1@news.povray.org>
Another problem I am having if anyone can help is -

How do I write an array to a file and then read it back into an array.
I have managed it with single variables but can not do it with the array.

Thanks

Dave


Post a reply to this message

From:
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 06:27:17
Message: <qt119uk3jphbm6m4bmheoj8arg535g9dbu@4ax.com>
On Wed, 13 Mar 2002 11:08:26 -0800, "Dave Brickell"
<d.b### [at] ntlworldnospamcom> wrote:
> How do I write an array to a file and then read it back into an array.
> I have managed it with single variables but can not do it with the array.

If size of array is constant then just start loop along entries and write each
entry like single variable and separate all with commas. If the size of an
array is variable then first write: number of dimensions, size of each
dimension and then do the same as for constant size of array. If you still
have a problem or need some source for this please ask in newusers group
becouse it looks more like newbie problem.

ABX


Post a reply to this message

From: Dave Brickell
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 07:50:07
Message: <3c909c7f$1@news.povray.org>
Yeah I have managed to do that, the problem is it reads every other line
instead of every line. I have read the manual over and over but cant
understand it (the problem, not the manual). I have posted the code in
p.t.s.f (subject - problem with #read) if you would be so kind as to have a
look and see what I am doing wrong.

Dave


Post a reply to this message

From:
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 08:03:51
Message: <6p719u0pfltthipr0jmuvheaq5g83upv2s@4ax.com>
On Wed, 13 Mar 2002 12:48:34 -0800, "Dave Brickell"
<d.b### [at] ntlworldnospamcom> wrote:
> I have posted the code in
> p.t.s.f (subject - problem with #read) if you would be so kind as to have a
> look and see what I am doing wrong.

I can't say anything without knowing content of file supposed to read. Are you
sure it was created corrently ? Have you tried debugging readed values ? Can I
see writing part ?

ABX


Post a reply to this message

From: Dave Brickell
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 08:19:03
Message: <3c90a347$1@news.povray.org>
Hi

> I can't say anything without knowing content of file supposed to read. Are
you
> sure it was created corrently ?

I have read the file manually and all values appear to be in the correct
places.

>Have you tried debugging readed values ?

Yes, that is how I found the problem of the #read part skipping lines.

>Can I see writing part ?

Certainly p.t.s.f  one thread down from the other post

Thanks

Dave


Post a reply to this message

From:
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 08:20:49
Message: <km819uk344f3sontboci92mehvsboumsbp@4ax.com>

wrote:
> I can't say anything without knowing content of file supposed to read. Are you
> sure it was created corrently ? Have you tried debugging readed values ? Can I
> see writing part ?

Ok. Probably your fault. Please reread my first post I posted in this thread
and note what I said about separating items in file. Then open your
documentation and look there again and read the same subject (in current 3.5
documentation it is in bottom part of chapter 6.2.3.4).

ABX
--
disc{z,-z 5#macro O()asc(substr("-+((1*(,1,/.-,*/(,&.323/'1"e,1))*.1-4#declare
e=e-1;#end#local e=26;pigment{#local g=function(_){ceil(_)-_}function#local//X
k=function{pattern{object{sphere_sweep{linear_spline 13#while(e>0)<O(),O()//AB
>.01#end}}}}{k(g(atan2(x,y)),g(ln((y+x)^2+1e-5)),0)}}finish{ambient 1}}//POV35


Post a reply to this message

From: Dave Brickell
Subject: Re: Can someone help the Particle System Noob
Date: 14 Mar 2002 08:36:57
Message: <3c90a779$1@news.povray.org>
Thank You

I could not see the wood for the trees :)

Dave


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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