POV-Ray : Newsgroups : povray.advanced-users : Re: Simple noise with pov ? : Re: Simple noise with pov ? Server Time
29 Jul 2024 00:28:59 EDT (-0400)
  Re: Simple noise with pov ?  
From: Warp
Date: 13 Jun 2003 07:49:02
Message: <3ee9ba2e@news.povray.org>
_Light_Beam_ <s.f### [at] tiscalifr> wrote:
> How can I draw this kind of noise with pov-pigment ?

  Short answer: You can't.

  Longer answer: It depends.
  Certainly a pigment which gives a more or less random color for any
sample won't work if you ever want to use antialiasing for your image
(antialiasing will tend to smooth the pigment). Since antialiasing is
usually a must, a completely different approach must be taken. However,
most of them will have a similar problem with antialiasing.
  One solution is to use a pattern like granite or whatever with a proper
color_map and scale it down until it looks good (it shouldn't be scaled
too small or else it will have the antialiasing problem).
  Naturally you can use that image as image map if it suffices.

  In the finish block you can use crand, but that is not a pigment property,
as it affects only the normal vectors and thus only works with the shading
(not the actual color of the surface).

  Probably no solution will give you exactly that type of pigment as in
your image in such a way that it will work ok in all cases (ie. all scales
and all antialiasing settings).
  If you are *not* going to use antialiasing, then scaling down some granite
pattern a lot can give good results.

  And by the way, you shouldn't post binary attachments in a non-binaries
group like this.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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