POV-Ray : Newsgroups : povray.advanced-users : shadows and transparent textures (transparency map) : Re: shadows and transparent textures (transparency map) Server Time
28 Jul 2024 14:27:33 EDT (-0400)
  Re: shadows and transparent textures (transparency map)  
From: uwe
Date: 13 Mar 2005 07:35:00
Message: <web.423432ad51916273f00afe800@news.povray.org>
max_trace_level makes no difference in this case.

consider this example:



global_settings { max_trace_level 10 }

camera {
  perspective
  location  <1, 1.5, 2>
  look_at   <0.5, 0.5, 0>
  angle     45
}

light_source {
  <10, 10, 10>,
  color rgb <1, 1, 1>
}

object {
 polygon { 4, <0, 0>, <1, 0>, <1, 1>, <0, 1> }
  texture {
    finish { ambient 1.000000 diffuse 1.000000 }
// 35.tga is an image with alpha channel of the number "35" on a fully
transparent background.
    pigment { uv_mapping image_map { tga "35.tga" interpolate 2 } }
  }
}

object {
  plane { <0.000000, 1.000000, 0.000000>, 0.000000 }
  texture {
    finish { ambient 1.000000 diffuse 1.000000 }
    pigment { color rgbft <0.400000, 0.400000, 1.000000, 0.000000, 0.000000>
}
  }
}

// note that the shadow cast by the polygon on the plane is the outline of
the polygon, not the outline of the number "35"


Post a reply to this message

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