// Persistence of Vision Ray Tracer Scene Description File // File: materialmapbug.pov // Vers: 3.5 // Desc: Demonstration of bug in material maps // Date: 6 April, 2002 // Auth: Henry Bush, henry'at'unforgettable.com // This scene contains a box with a material map on it (80x80x16 colours) // Two bugs actually: when this scene is rendered several times, I get (seemingly random) different colours for the // space outside the circle (which is palette index 15 and not specified in the map), and therefore the other two // visible sides of the box. I've had black and yellow mostly (indices 0 and 2-15), but also red occasionally (index 1). // But I've not got red for quite some time (traced it probs about 100 times as well, so it's not a 1/16 chance!). // NOTE: This next bit is not a bug. Just checked the docs. The insert material_map states interpolate type 1 // can be used for linear interpolation. Can this be changed? // (IGNORE) The other bug is that When I use linear interpolation on the material_map, I get a black (index 0) box: no image at // all. This isn't affected by map type. I discover now that it occurs with image_maps too. Someone must have found // this bug before, right? (/IGNORE) // I've tested this bug with both a BMP and a PNG and the bug still occurs in each case. // Bug has been tested on my system in 3.1g, same thing happens. // I think I've removed all that I can, including lights. All done with ambient. // POV 3.5 Build 15, Athlon 650 o/c to 682, 512Mb RAM, Windows XP Pro. #version 3.5; global_settings { ambient_light 6 assumed_gamma 1.0 } // ---------------------------------------- camera { location <0.0, 1.5, -4.0> direction 2.5*z right x*4/3 //image_width/image_height look_at <0.5, 0.5, 0.5> } background { rgb .7 } // ---------------------------------------- box { <0,0,0> <1,1,1> texture { material_map { png "Circular Window 1 Stupidly Small.png" // map_type 0 // Happens with all map types interpolate 0 // none, bilinear and normalised work fine, but linear doesn't texture { pigment {colour rgb 0} } // Black texture { pigment {colour rgb <1,0,0>} } // Red texture { pigment {colour rgb <1,1,0>} } // Yellow } // material_map } rotate y*45 // To get a better look }