POV-Ray : Newsgroups : povray.binaries.animations : JAPAPS (467kb file) : JAPAPS (467kb file) Server Time
20 Jul 2024 01:28:48 EDT (-0400)
  JAPAPS (467kb file)  
From: Mark James Lewin
Date: 29 Nov 2001 20:15:11
Message: <3C06D9FE.58337921@yahoo.com.au>
Just Another Person Attempting Particle Systems

    Inspired by fantastic animations by others (Rune, JPG etc.) I decided I would
try to write my own particle system in POV. I started in early October, and after
a period of inactivity, decided to get it to a workable stage. Here is an attempt
at particle interaction that looks to be going in the direction I want it to.
    There are 500 particles here. They attract and repel each other, and you can
see this behaviour in some parts of the simulation, as globs form. As this is not
a final product, and because I like to have an indication of what the little
blighters are doing during the simulation, the particles are represented with
spheres and cones (cones showing the velocity vector). It's crude, but helps me
spot errors.
    Any comments welcome.

MJL

--
light_source{12*(y-z)rgb 2fade_distance 9fade_power 2area_light x,z,5,5}#macro A
(H,B,R,T)prism{0,1H+4,0u*9,9v*9,0#local I=1;#while(I<H)#local V=asc(substr(B,I,1
))-33;<div(V,10)mod(V,10)>#local I=I+1;#end pigment{red 1}rotate-<90,R>translate
-T}#end A(16"/.@VZno=<PLA89/"0,5*x)A(14",6;MWmhryXN3,"60<15,0,8>)camera{location
25*(y-z)look_at 0}A(8"6hiAG=6"-60,-10*x)box{-99(x+z)*99 pigment{rgb 1}}   // MJL


Post a reply to this message


Attachments:
Download 'wramp1.mpg' (467 KB)

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