POV-Ray : Newsgroups : povray.newusers : Rand and animation : Re: Rand and animation Server Time
29 Jul 2024 18:27:40 EDT (-0400)
  Re: Rand and animation  
From: Bernard Hatt
Date: 13 May 2005 00:45:51
Message: <42843104.EAE460A7@arkady.demon.co.uk>
Bryan Heit wrote:
> 
> I am having a problem getting rand to work properly with an animation.
> Basically, I'm trying to make the intensity of a light source to flicker
> randomly.  

How about something like:

    #if (f_noise3d(clock*50,0,0)>0.5)
       make bright light
    #else
       make dim light
    #end

Regards,

Bernard


Post a reply to this message

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