POV-Ray : Newsgroups : povray.macintosh : media object visible : media object visible Server Time
3 Jul 2024 04:36:54 EDT (-0400)
  media object visible  
From: Josh Franklin
Date: 15 Sep 1999 23:12:51
Message: <37E05FE7.AC49A507@yahoo.com>
Ok, here's another question I have for you all...I have a cylinder that
houses a media object that looks like fire. The fire looks great, but
there is a dark clearish object where the cylinder is. here is most the
code for the scene...

#include "colors.inc"

camera {
	location < 0.0, 1.4, -1.0 >
	look_at < 0.0, 1.35, 0.0 >
}

//i've tried setting media_interaction off, but that does nothing
light_source { < 100.0, 100.0, -100.0 > color rgb 0.8 }

//just to make it visible
background { color rgb <0.6, 0.2, 0.4 > }

//could the fog be interfering?
fog {
	fog_type 2 distance 80 color rgbf < 0.6, 0.4, 0.6, 0.4 >
	turbulence 0.6 turb_depth 10
	omega .75 lambda 2.5 octaves 3
	fog_offset 0.8 fog_alt 1.3
  }


plane {
	y, 0.0
	texture {
		pigment { color rgb < 0.04, 0.8, 0.1 > }
		normal { bumps 0.3 scale < 1.2, 0.6, 1.4 > }
	} 
}

//This is the evil cylinder
cylinder {
	<0, 0.01, 0 >, < 0, 2, 0 >, 1
	pigment { color rgbf 1 }
	interior {
    		media {
      		emission 1.5
			intervals 20
			samples 1, 10
			confidence 0.9999
			variance 1/1000
			density {
			   cylindrical
		        poly_wave pi
		        turbulence 1.1
		        color_map {
			          [0.0 color rgbt < 0, 0, 0, -1 > ]
			          [0.3 color rgbf <1, .45, 0, -.9 >]
			          [0.8 color rgbf <1, 1, 0, .8 >]
			          [1.0 color rgbt < 0, 0, 0, -1 > ]			          
		        } 
		        scale < 1.4, .8, .8 >
		        rotate 90*z rotate 85*y
      		}
    		}
	}
	translate 5*z
	hollow
}


Post a reply to this message

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