POV-Ray : Newsgroups : povray.binaries.animations : Submarine with spherical iris (264 kb) : Re: Submarine with spherical iris (264 kb) Server Time
2 Nov 2024 11:25:13 EDT (-0400)
  Re: Submarine with spherical iris (264 kb)  
From: Rune
Date: 23 Feb 2002 09:38:02
Message: <3c77a94a@news.povray.org>
"Timothy R. Cook" wrote:
> How do I make blinking lights?!

#declare Frequency = 10; // Blinks per clock unit.
#declare Ratio = 0.4; // How much of the time the lamps are on.
#declare LightOn = (mod(clock*Frequency,1)<Ratio);
light_source {<1,2,3>, color rgb 1*LightOn}

But if you're using Moray, then I have no idea.

Nice animation by the way!

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Feb 16)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

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