POV-Ray : Newsgroups : povray.binaries.images : Glass problem : Re: Glass problem Server Time
5 Nov 2024 08:26:10 EST (-0500)
  Re: Glass problem  
From: Gilles Tran
Date: 16 Nov 2006 09:55:00
Message: <455c7bc4$1@news.povray.org>

web.455c5ac069412694d8ef73430@news.povray.org...

> I also tried with T_Glass2, but no improvements get.

Note that the full code for the glass scene you took as an example is 
available here (I guess it's only linked from Wikipedia for now):
http://www.oyonale.com/ressources/downloads/gt_glass_wikipedia.zip

What makes the glass shine nicely is the very high ambient value from the 
sky (cf scene code).

The relevant glass texture is the one below.

    #declare F_Glass=finish {
        ambient 0
        diffuse 0
        specular 0.8
        roughness 0.0003
        phong 1
        phong_size 400
        reflection {
            0.01, 1
            fresnel on
        }
        conserve_energy
    }

    #declare T_Glass =texture{
        pigment{rgbf<1,1, 1, 0.95>}
        finish {F_Glass}
    }


    #declare I_Glass=interior{
        ior 1.51
        fade_distance 10
        fade_power 2
    }


Post a reply to this message

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