POV-Ray : Newsgroups : povray.binaries.images : slope_pigment test : Re: slope_pigment test Server Time
30 Jun 2025 21:31:50 EDT (-0400)
  Re: slope_pigment test  
From: Rune
Date: 3 Nov 2002 09:20:06
Message: <3dc53096@news.povray.org>
Norbert Kern wrote:
> But again, how can I get the color change with
> variable reflection?

By using different colors for the minimum and maximum reflection. This
however will only make the color of the reflection change, not the
pigment, but combined with heavy reflection blurring, this might look
good.

Here's some sample code, but it doesn't have blurred reflection:

sphere {
   0, 1
   pigment {rgb 0.1}
   normal {bumps 0.5 scale 0.15 turbulence 0.5}
   finish {reflection {<0.1,0.2,0.5>, <0.4,0.8,0.4>}}
}
light_source {<1,2,-3>*1000, color 1}
camera {location -4*z look_at 0}
background {rgb 1}

Another problem is that you can only blend between two colors with
variable reflection, but that might also not be a big problem.

Rune
--
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com (updated Oct 19)
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

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