POV-Ray : Newsgroups : povray.binaries.images : waste of time! : Re: waste of time! Server Time
21 Jun 2024 02:08:25 EDT (-0400)
  Re: waste of time!  
From: Alain
Date: 31 Jan 2008 11:49:31
Message: <47a1fc1b@news.povray.org>
Nice. The glass material looks more convincing. I also like your new glasses, 
much more elegant.

Now, how about adding some dispersion...

nemesis nous apporta ses lumieres en ce 2008/01/30 14:37:

> #macro tex( col )
> material {
>     texture {
>     pigment { rgbft col + FT }
>     //pigment { rgbt 1 }
>     #if (NORMALS) normal { bumps .1 scale .002 } #end
>     #if (1)
>     finish { ambient .06 diffuse .4 brilliance 1.2
>             specular .92
>             #if (NORMALS)
>             roughness .04
>             #else
>             roughness .01
>             #end
>             metallic .07
>             #if (REFLECTIONS)
>             reflection { .06,.5 metallic .07 fresnel 1 exponent 1.2 
> falloff 2 }
>             conserve_energy
>             #end
>     }
>     #end
>     }
>     interior {
>         #if (REFRACTION) ior REFRACTION #end
>         fade_power 2 fade_distance .02 fade_color rgbft col+FT

dispersion 0.03#if(CRAZY)dispersion_samples 20 #else dispersion_samples 9 #end

>         #if (MEDIA)
>         media {
>                 intervals 8 samples 2,6
>                 emission 3.81*(col)
>                 absorption 12*(1-col)
>                 #if (CRAZY) scattering { 0, (col)*7 extinction 1 } #end
>                 scale .2
>                 #if (1)
>                 density {
>                     bumps scale .002
>                     color_map {[0 rgb 1][.5 rgb 1][.56 rgb 0][1 rgb 0]}
>                 }
>                 #end
>         }
>         #end
>     }
> }
>     photons { target refraction on }
> hollow
> #end
> 


-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when you call in sick in order to render.
David Kraics


Post a reply to this message

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