POV-Ray : Newsgroups : povray.binaries.images : shadows don't honor image_map alpha channel : Re: shadows don't honor image_map alpha channel Server Time
31 Jul 2024 20:15:13 EDT (-0400)
  Re: shadows don't honor image_map alpha channel  
From: Ive
Date: 6 May 2009 04:32:15
Message: <4a014b0f@news.povray.org>
clipka wrote:
> See povray.bugreports
> 
> 
> ------------------------------------------------------------------------
> 

The shadows seem to work with both methods:

PNG with internal alpha channel or by using pigment_pattern -
the way I do prefer, because you can add specular highlights:


#local Leaf_1_opaque = texture {
   uv_mapping
   pigment {P_Leaf}
   normal {N_Leaf}
   finish {
     ambient 0  diffuse 0.9
     specular 0.1 roughness 0.1
   }
}

#local Leaf_1_trans = texture {
   uv_mapping
   pigment {P_Leaf transmit 1}
   normal {N_Leaf}
   finish {
     ambient 0  diffuse 0.9
     specular 0.0 roughness 0.1
   }
}

#declare T_Leaf_1 = texture {
   uv_mapping
   pigment_pattern {A_Leaf1}
   texture_map {
     [0 TA03_Leaf_1_trans]
     [1 TA03_Leaf_1_opaque]
   }
}


But as soon as you add media or fog the transparent parts become
partial visible in 3.7 beta, see the attached shrub. This happens
also with both methods.


Post a reply to this message


Attachments:
Download 'testleaf.jpg' (27 KB) Download 'testshrub.jpg' (52 KB)

Preview of image 'testleaf.jpg'
testleaf.jpg

Preview of image 'testshrub.jpg'
testshrub.jpg


 

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