POV-Ray : Newsgroups : povray.newusers : Shiny reflection on white plane : Re: Shiny reflection on white plane Server Time
29 Jul 2024 22:20:43 EDT (-0400)
  Re: Shiny reflection on white plane  
From: Christoph Hormann
Date: 20 Feb 2005 04:00:02
Message: <cv9jbb$jks$1@chho.imagico.de>
goran17 wrote:
> Hi,
> 
> I have just recently stumbled upon POV-Ray, and i am really impressed. It
> need it forr something what i thiught will be simple task, I want to make
> an image like this: http://www.keywordsanalyzer.com/images/KA-7-v3.jpg
> 
> The problem is the white shiny reflection on the floor.
> 
> I have managed to apply image on the side of the box (only one side at the
> moment, but I will manage it, I guess). I have even found out I have to use
> interpolate to make the image nicer. However, no matter how hard I try I
> can't get that white floor with reflection. The best I have come up with
> is:
> http://www.keywordsanalyzer.com/temp/MyTry.gif

Try the following:

global_settings {
   assumed_gamma 1
   radiosity{
     pretrace_start 0.08
     pretrace_end   0.001
     count 150
     error_bound 0.2
     recursion_limit 1
   }
}

camera {
	location <0, 1.5, -3>
	look_at  <0, 0.5, 0>
	angle 36
}


plane {
   y, 0

   #declare BlurAmount = 0.15;
   #declare BlurSamples = 20;

   texture {
     average
     texture_map
     {
       #declare Ind = 0;
       #declare S = seed(0);
       #while(Ind < BlurSamples)
         [1
           pigment { color rgb 1.25 }
           finish {
             reflection {0.2, 1.0 fresnel on}
             diffuse 0.7 ambient 0
           }
           normal {
             bumps BlurAmount
             translate <rand(S),rand(S),rand(S)>*10
             scale 1000
           }
         ]
         #declare Ind = Ind+1;
       #end
     }
   }
   interior { ior 1.5 }
}

sky_sphere {
	pigment {
		gradient x
		color_map {
			[0.4 color rgb < 0.700, 0.715, 1.000>*0.5]
			[0.85 color rgb < 1.500, 1.400, 1.250>*1.7]
			
		}
		scale 2
		translate -x
		rotate 20*y
	}
}

box {
	0, <1,  1,  0.4>
	texture {
		pigment {
			color rgb <1,0.9, 0.6>
		}
		finish { ambient 0 diffuse 0.6 }
	}
	rotate<0, -30, 0>
}




-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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