POV-Ray : Newsgroups : povray.advanced-users : Problems with media :-( : Re: Problems with media :-( Server Time
29 Jul 2024 18:22:26 EDT (-0400)
  Re: Problems with media :-(  
From: Lutz-Peter Hooge
Date: 15 Apr 2001 03:54:03
Message: <MPG.154372c1333090059896af@news.povray.org>
In article <3ad9491d@news.povray.org>, Mar### [at] t-onlinede 
says...
> What do you use as container? Those Pic looks to me as if an isosurface has
No, its only a sphere.
here comes the complete code:

#macro shieldeffect(cval,Size, Brightness)
	sphere
	{       
		0.0, 1
	
		texture
		{
			pigment
			{       
				color rgbf <1,1,1,1>
			}
		}
		hollow 
		
		interior
		{
			media
			{       
                           method 3
				emission 10*Brightness
				intervals 10
				// samples 1,100
				
				// variance 1.0/256 // -
				// confidence 0.99   // +
				
				density
				{
					spherical
		       		      	color_map
		       		      	{
		        			[0.00 rgb 1]
		        			[0.10 rgb 0]
						[1.00 rgb 0]
		      			}
		      		}
		      		
		      		density
				{
					spherical
		       		      	color_map
		       		      	{
		        			[0.00 rgb 0]
						[1.00 rgb 1]
		      			}
		      			scale .3*Size
		      			translate y*1
				}
	
		      		density
				{
					radial
					triangle_wave 
		       		      	color_map
		       		      	{
		        			[0.00 rgb .5]
						[1.00 rgb 1]
		      			}
		      			frequency 20
		      			rotate y*cval*180 // rotate 25 degrees
		      			turbulence .3
				}
	
		      		density
				{
					bozo
		       		      	color_map
		       		      	{
		        			[0.00 rgb <0,1,.5>]
						[1.00 rgb <0,.5,1>]
		      			}
		      			translate cval*10
					scale .05
				}
	
	        	}
	      	}
	      	rotate x*90
	}
#end


Post a reply to this message

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