POV-Ray : Newsgroups : povray.advanced-users : Using an image_map as a light filter: bug in 3.8? : Using an image_map as a light filter: bug in 3.8? Server Time
18 May 2024 07:08:50 EDT (-0400)
  Using an image_map as a light filter: bug in 3.8?  
From: Bald Eagle
Date: 21 Jun 2019 17:35:00
Message: <web.5d0d4d574f89eb5b4eec112d0@news.povray.org>
I was just trying to make a simple scene to project some light through an image
map, and started pulling my hair out.

The image map casts a black shadow onto my plane.  Nothing I tried to do changed
this. (changing filter values, moving things around, changing the ordering of
directives)

I have a lot of hair, and causing myself undue difficulty in writing the
simplest of scenes is not unusual, but ...


a)  I found surprisingly few scenes and examples trying to search for a reason /
solution.

and

b) when I simply switch from #version 3.8; to #version 3.7;
it works fine - just as expected.

Did something get changed in 3.8 that needs to be done to have this work "the
old way"? or is this truly a bug that crept in?

Here's the scene with some visual markers - just plop some image you have stored
locally in place of my surface map of the planet Mercury.

-----------------------------------------------------------------------
//#version 3.8; // <--- no worky. The POV-Ray is busticated. :(
#version 3.7; //  All is light and happiness.

global_settings {assumed_gamma 1.0}
#include "colors.inc"

camera {
 location <0, 6, -5>
 right x*image_width/image_height
 up y
 look_at <0, 3, 0>
}

//sky_sphere {pigment {rgb 1}}



#declare Filter =

texture {
 pigment {
  image_map {"/home/oem/Documents/POV-Ray-3.8/Maps/mercury-map.jpg"
   once
   filter all 1
  } // end image_map

 translate <-0.5, -0.5, -0.5>
 scale <0.125, 0.125, 1.0>
 translate 0.5
 warp {spherical}
 rotate -y*90
 rotate -x*90
 } // end pigment
} // end texture

#declare Position = <0, 5, 0>;

#declare Sphere = sphere {<0, 0, 0> 1 }
object {Sphere pigment {rgbt <1, 1, 1, 0.8>} no_shadow scale 0.99 translate
Position}

object {Sphere texture {Filter} translate Position}

object {Sphere texture {pigment {rgbt <1, 1, 0, 0.5>} finish {emission 1}}
no_shadow scale 0.1 translate Position}
light_source {Position rgb 1}

plane {y, 0 pigment {checker White Gray90}}


Post a reply to this message

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