POV-Ray : Newsgroups : povray.advanced-users : Functions + variables : Re: Functions + variables Server Time
28 Jul 2024 10:27:02 EDT (-0400)
  Re: Functions + variables  
From: Mike Williams
Date: 14 Apr 2006 16:16:50
Message: <IX2R6UAlMAQEFwrx@econym.demon.co.uk>
Wasn't it Orchid XP v2 who wrote:
>I tried to do this:
>
>pigment {function {f_bozo(x, y + frame_number, z)}}
>
>...and got an error message. Seems POV-Ray doesn't think "frame_number" 
>is a valid token. (Was expecting ",".)
>
>Anybody wanna take a guess why this is happening? I just want the 
>function to change slightly each frame...

This works:

#declare F = frame_number;
...
pigment {function {f_bozo(x, y + F, z)}}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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