POV-Ray : Newsgroups : povray.unofficial.patches : megapatch and motion-blur : Re: megapatch and motion-blur Server Time
2 Nov 2024 09:20:40 EDT (-0400)
  Re: megapatch and motion-blur  
From: Chris Huff
Date: 12 Dec 1999 16:54:43
Message: <chrishuff_99-F83C6B.16551012121999@news.povray.org>
In article <3854145E.5568E300@bravo435.chem.mcgill.ca>, Carl Bartels 
<cab### [at] bravo435chemmcgillca> wrote:

> Is it possible to make it blur in just one direction?  Something like
> the trailing streamers they sometimes put in cartoons to indicate
> something is moving fast.

It should be possible to do something like this, motion_blur is 
basically a loop with special rendering. Transform the object using a 
counter instead of the clock variable, and if you need to use the clock 
variable, using something like
#declare Time = clock;
motion_blur {...use Time instead of clock...}
should work instead, without having the clock variable affect the blur.
Try something like this(excuse any errors, this is all from memory and 
is untested):

#declare MotionBlurSamples = the number of samples for motion blur
#declare BlurLength = the desired length of the motion blur

#declare Time = clock;
#declare Ctr = 0;//counter variable
motion_blur {
    sphere {<0, 0, 0>, 1
        translate x*(Time*3 + pow(Ctr/MotionBlurSamples,2)*BlurLength)
    }
    #declare Ctr = Ctr + 1;
}

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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