POV-Ray : Newsgroups : povray.binaries.images : First attempts at blurred reflection... : Re: First attempts at blurred reflection... Server Time
2 Nov 2024 02:16:29 EDT (-0400)
  Re: First attempts at blurred reflection...  
From: Jörg 'Yadgar' Bleimann
Date: 28 Nov 2011 08:10:54
Message: <4ed3885e$1@news.povray.org>
Hi(gh)!

On 28.11.2011 04:05, clipka wrote:

> It looks to me like you're using just one single bumpy texture, rather
> than multiple ones - or you've forgot to translate each of them
> randomly; you need either multiple layers (e.g. 40 as in the example),
> or - my personal preference - some slight but high-quality focal blur
> for good oversampling (anti-aliasing doesn't quite cut it), in which
> case a single small-scale bumpy texture will suffice.

In fact I did so... here's the code:

#declare N_Blurred =
normal
{
   bumps pow(10, div(clock, 5)-2)
   turbulence pow(10, mod(clock, 5))
}

#declare F_Metallic =
finish
{
   diffuse 1
   brilliance 0.7
   specular 1
   roughness 0.001
   reflection 0.5
   metallic
}

#declare T_Blurred_Gold =
texture
{
   average
   texture_map
   {
     #while (i<40)
       #declare rn=seed(0);
       [1  pigment { color rgb <0.8, 0.75, 0> }
           finish { F_Metallic }
           normal { N_Blurred translate <rand(rn),rand(rn),rand(rn)>*100 
scale 0.001  } ]

       #declare i=i+1;
     #end
   }
}

// end of code

See you in Khyberspace!

Yadgar


Post a reply to this message

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