POV-Ray : Newsgroups : povray.advanced-users : Evaluating pattern : Re: Evaluating pattern Server Time
2 Nov 2024 07:26:30 EDT (-0400)
  Re: Evaluating pattern  
From: Gail Shaw
Date: 27 Jan 2000 01:32:18
Message: <388fe672@news.povray.org>
Chris Colefax wrote in message <388f7a39@news.povray.org>...
>Would translating the pigment by random amounts be enough?  I use this
>method in the Galaxy include file to produce differently shaped nebulae,
>based on POV-Ray's various noise patterns, eg:
>
>   #declare R1 = seed(0);
>   #declare Patterns = array[15]
>
>   #declare C = 0; #while (C < 15)
>      #declare Patterns[C] = pigment {bozo
>         translate (<rand(R1), rand(R1), rand(R1)>-.5)*1000}
>   #declare C = C + 1; #end
>
>Depending on how random you want the patterns you could add random scalings
>and rotations as well.


thanks, that's just perfect.

Gail
*******************************************************************
* gsh### [at] monotixcoza              * ERROR: COFFEE.COM not found  *
* http://www.rucus.ru.ac.za/~gail/ * Insert cup and press any key *
*******************************************************************
* Definition of an upgrade: Take the old bugs out, put new ones in*
*******************************************************************


Post a reply to this message

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