POV-Ray : Newsgroups : povray.binaries.images : Pov-Bouf Bellevile saterday 23 -16h30 : Re: Pov-Bouf Bellevile saterday 23 -16h30 Server Time
14 Aug 2024 05:14:19 EDT (-0400)
  Re: Pov-Bouf Bellevile saterday 23 -16h30  
From: Martial
Date: 6 Dec 2002 06:47:50
Message: <3df08e66@news.povray.org>
> While looking again at you picture, i notiched something strange.
> The beerglass is placed half on the mugmap, if i place my beer like that i
> always get my paints wet.

My material for the beerglass

/*-------------------------------MATERIALS-*/

#declare Mat_VerreBiere=
    material {
            texture {
                pigment{color  rgbt<1,1,1,1>}
                finish{specular .5 roughness 0.001  ambient .0 diffuse .0}
            }
              interior {ior 1.5
                   fade_distance .1 fade_power 2
                   fade_color rgb <0.9, 1.0, 0.95>*.8
                   media { absorption .2  samples 1,1 method 3   }
        }
    }

/*------------------------------BEERGLASS-*/
#declare GlassBeer =
lathe{
 cubic_spline
 14,
 <0.003207,-0.003207>,
 <0.000000,0.017639>,
 <0.093006,0.019243>,
 <0.240532,0.009621>,
 <0.359195,0.008018>,
 <0.299864,0.117059>,
 <0.315899,0.198840>,
 <0.279018,0.352781>,
 <0.381645,0.922041>,
 <0.352781,0.922041>,
 <0.197237,0.242136>,
 <0.131491,0.107438>,
 <0.000000,0.093006>,
 <0.000000,0.099420>

 material {Mat_VerreBiere}
    translate y*0.001
    photons {
        target .1
        refraction on
        reflection on
}
    hollow
}
/*----------------------------------------------------*/
object{GlassBeer translate <where, you, want>}

/*----------------------------GLOBAL_SETTINGS*/
global_settings{
   max_trace_level 100
    photons {
        spacing .01
         gather 1,100
           }
}
/******************************************/


Post a reply to this message

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