POV-Ray : Newsgroups : povray.advanced-users : Blurred reflections : Re: Blurred reflections Server Time
27 Apr 2024 18:23:45 EDT (-0400)
  Re: Blurred reflections  
From: Mike Horvath
Date: 5 Feb 2018 21:05:55
Message: <5a790d83$1@news.povray.org>
Also, is there a way to speed this up? Right now it's stuck at 6% of the 
mosaic phase for an hour. I don't recall UberPOV being this slow. :(


Mike






#declare BlurAmount = 0.2*2; // Amount of blurring, double BlurAmount 
since it's used in an average
//#declare BlurSamples = 40; // How many rays to shoot
#declare BlurSamples = 10; // How many rays to shoot
#macro BlurredReflection(InPigment, InFinish, InNormal)
//	texture
//	{
		average
		texture_map
		{
			#declare iCount = 0;
			#declare S = seed(0);
			#while (iCount < BlurSamples)
				[
					1 // The pigment of the object:
					pigment { InPigment }
					// The surface finish:
					finish { InFinish }
					// This is the actual trick:
					normal
					{
						average
						normal_map
						{
							[1 bumps BlurAmount translate <rand(S),rand(S),rand(S)>*100 scale 
1000]
							[1 InNormal]
						}
					}
				]
				#declare iCount = iCount + 1;
			#end
		}
//	}
#end


Post a reply to this message

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