POV-Ray : Newsgroups : povray.advanced-users : Is there a way : Re: Is there a way Server Time
29 Jul 2024 22:29:31 EDT (-0400)
  Re: Is there a way  
From: Chris Colefax
Date: 17 Sep 2000 19:20:56
Message: <39c551d8@news.povray.org>
Mick Hazelgrove <mic### [at] mhazelgrovefsnetcouk> wrote:
> Is there a way of  doing
>
>     x (+ or -) y ?

This is something I use a lot in my work - code like this should do the
trick:

   BaseAmount + (rand(Seed) - 0.5) * Randomness

For example, if you wanted to scale objects within 2 unit of 10 units, use
(10 + (rand(R1)-.5)*2).


Post a reply to this message

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