|
![](/i/fill.gif) |
On 16.10.11 16:28, lucas wrote:
> Hello,
>
> I declared a few functions. I need to use a random generator in one of them.
> Accprding to documentation (http://www.povray.org/documentation/view/3.6.1/228/)
> I thought that I can use function rand() as any other float function, but I
> encountered a problem. I can declare a function like below:
You need to look at the documentation for user-defined functions at
http://www.povray.org/documentation/view/3.6.1/231/ . Some SDL functions
cannot be used in user-defined functions. In your particular case, the best
alternative is a noise function, which provides a 3D randomness that
probably meets your needs.
Thorsten
Post a reply to this message
|
![](/i/fill.gif) |