POV-Ray : Newsgroups : povray.newusers : How to make streamlines : Re: How to make streamlines Server Time
30 Jul 2024 10:13:19 EDT (-0400)
  Re: How to make streamlines  
From: Alain
Date: 25 Jun 2004 15:42:41
Message: <40dc8031$1@news.povray.org>
karla nous apporta ses lumieres ainsi en ce 25/06/2004 11:58... :

>Hi,
>I wanted to ask if anyone knows how to create streamlines.  I am visualizing
>particles in a box that have a velocity. what I want to do is be able to
>create a streamline or an arrow that origines in the particle and points
>toward the {x,y,x} that I specify.
>I would appreciate if anyone can help
>thank you
>
>karla
>
>
>  
>
If your particles are suposed to move in a traight line, you can use the 
following:
union{
    object{"your particle"translate<Px,Py,Pz>}
    cylinder{<Px,Py,Pz>,<X,Y,Z>,"particle radius" hollow pigment{rgbt 1}
       interior{media
            {emission 1//if you want your trails to "glow"
             scattering 1//to diffuse light like some fog
             density{rgb 1}// adjust upward if to faint, down if to thick
             }//media
          }//interior
       }//cylinder
    }//union

If your particles are suposed to travel in a slight curve, use a torus 
section instead of the cylinder. Major radius will be the trajectory 
radius, it's minor radius is the particle radius. It's placement is more 
tricky.
You could also use a sphere_sweep, it enable you to have some twisty 
trajectories.

Alain


Post a reply to this message

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