POV-Ray : Newsgroups : povray.beta-test : light_group+media bug : light_group+media bug Server Time
5 Nov 2024 01:21:19 EST (-0500)
  light_group+media bug  
From: Lutz-Peter Hooge
Date: 11 Sep 2001 09:45:48
Message: <MPG.160834111f191173989688@news.povray.org>
scattering media seems to be always and only illuminated by global 
light_sources, even if "global_lights off" is specified.

Also, Pov always gives a warning "no pigment type given" when using 
light_groups.

here a small scene to demonstrate it

#version 3.5;

global_settings
{
	assumed_gamma 1
	ambient_light 0
}

camera
{
	location <0,0,-5>
	look_at <0,0,0>
}

#macro light_marker(rad,col)
sphere
{
	0,1
	hollow
	pigment{color rgbt 1}
	interior
	{
		media
		{
			emission 1/rad*col
			density{spherical}
		}
	}
	scale rad
	
}
#end

light_source
{
	<1.5,1.5,-1>
	color rgb <1,0,0>
	looks_like{light_marker(.5,<1,0,0>)}
}

light_group
{ 
	
	light_source
	{
		<-1.5,1.5,-1>
		color rgb <0,0,1>
		looks_like{light_marker(.5,<0,0,1>)}
	}
	
	sphere
	{
		<0,0,0>,.5
		hollow
		texture{pigment{color rgbt 1}}
		interior
		{
			media
			{
				scattering{1,color rgb 10}
				intervals 3
			}
		}
	}
	
	global_lights off
}


Post a reply to this message

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