POV-Ray : Newsgroups : povray.general : Looking for Water : Re: Looking for Water Server Time
1 Jun 2024 22:57:34 EDT (-0400)
  Re: Looking for Water  
From: clipka
Date: 3 Aug 2015 13:13:57
Message: <55bfa155$1@news.povray.org>
Am 03.08.2015 um 15:43 schrieb Norbert Kern:

> A reaonable fast water material is the one from the povray benchmark:
>
> #declare RMF = function {f_ridged_mf (x,y,z, 0.07, 2.2, 7, 0.6, 0.9, 1)}
>
> #declare M_Watx4 =
> material {
>          texture {
>                  pigment {color rgbt <0.21,0.2,0.3,0.96>}

In theory it should be "rgbt <0.0,0.0,0.0, 1.0>"

>                  finish {
>                          diffuse 0
>                          ambient 0

Those two are important indeed.

>                          reflection {0.1, 0.95 fresnel on exponent 0.8}

At least theoretically that should be "reflection { 1.0 fresnel on }"

>                          conserve_energy

Very important.

>                          specular 0.1*10
>                          roughness 0.007

To better match the reflection, it should be "specular albedo 1.0" 
(provided you go for the theoretical value).

If you use a new (semi-official) version of POV-Ray, placing an 
additional "fresnel on" here would also help for more realism.

>                          metallic 0+0.5

In theory it shouldn't be metallic.

>                  }
>                  normal {
>                          function {RMF (x,y,z)} 0.2
>                          scale 0.07
>                  }
>          }
>          interior {
>                  ior 1.31
>                  fade_distance 0.8
>                  fade_power 1001
>                  fade_color <0.02,0.2,0.06>

For realism, you should also have some scattering component (read: 
scattering media) in the interior.


Post a reply to this message

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