POV-Ray : Newsgroups : povray.advanced-users : Apparent circular pattern of scratches : Re: Apparent circular pattern of scratches Server Time
29 Apr 2024 16:38:49 EDT (-0400)
  Re: Apparent circular pattern of scratches  
From: Thomas de Groot
Date: 25 Jan 2019 03:51:38
Message: <5c4ace1a$1@news.povray.org>
This scene comes close to the initial examples given. I still have 
trouble to get the reflection of the light to be broader to right and left.

//start code
#version 3.8;

global_settings {
   assumed_gamma 1.0
}

camera {
   location  <0, 100, -100>
   look_at   <0, 0, 100>
   direction z
   right     x*image_width/image_height
   angle     54
}

light_source {
   <0,0,0>
   color rgb <1, 1, 1>*1
   translate <0, 50, 100>*100
}

sky_sphere {
   pigment {
     gradient y
     color_map {[0 rgb 1] [.5 rgb <0,0.3,1>]}
   }
}

#local N_scratch =
normal {
   bump_map {png "scratches.png" gamma 1}
   rotate 90*x
}

plane {
   y, 0
   pigment {rgb 0.3}
   normal {
     average
     normal_map {
       [1.0 N_scratch scale 50 bump_size -1]
       [1.0 N_scratch scale 40 bump_size -0.8]
       [1.0 N_scratch scale 30 bump_size -0.6]
       [1.0 N_scratch scale 20 bump_size -0.4]
       [1.0 N_scratch scale 10 bump_size -0.2]
     }
   }
   finish {
     specular albedo 0.1
     diffuse albedo 0.9
     roughness 0.001
     metallic
     reflection {0.5, 1.0 metallic}
     conserve_energy
   }
}
//end code

-- 
Thomas


Post a reply to this message

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