POV-Ray : Newsgroups : povray.text.tutorials : Basic Particle System. : Basic Particle System. Server Time
23 Apr 2024 12:29:42 EDT (-0400)
  Basic Particle System.  
From: JRG
Date: 10 Jan 2002 17:45:04
Message: <3c3e1970@news.povray.org>
I've written the basic particle system requested. Still have to write a little
example.
There's only one (quite serious I fear) problem. It always crashes with the present
beta (works fine with MegaPov). Surely a bug.
So, there are two options:

1) I could post the code 'as is', but it wouldn't be that useful without a little
explanation (though it's very simple), and you'd have to use MegaPov (no particular
MegaPov feature is used, as I said, it simply crashes with the present beta for
Windows.)

2) I could wait and write a little tutorial to explain how this simple system works.

Nothing prevents me to post the code first and to write the tutorial afterwards, if
you find it fine :)

Would you like the system to handle animations too?


--
#local j=text{ttf"arial""JRG".2,0}#local J=0;#while(J<10)#local R=0;#while
(R<2)#local G=0;#while(G<1)#if(inside(j<R,G.1>))object{j scale.025translate
<R-1G-J/20J/-40+2>pigment{rgb<9J>}}#debug"O"#else#debug" "#end#local G=G+
.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG

Home: http://digilander.iol.it/jrgpov  //New: Kitchen scene WIP


Post a reply to this message

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