POV-Ray : Newsgroups : povray.advanced-users : use_alpha and hierarchy : use_alpha and hierarchy Server Time
16 May 2024 11:25:56 EDT (-0400)
  use_alpha and hierarchy  
From: Bald Eagle
Date: 23 Oct 2014 15:40:02
Message: <web.544958848419c90d5e7df57c0@news.povray.org>
I'm having a bit of difficulty structuring my texture statement for a
black&white frame.  I'm guessing that I somehow need to use "use_alpha", and
then have another level of the hierarchy specify the mapping of the textures for
the black and white regions of the image.

NOT using the use_alpha keyword and just texture_map from 0.01 to 1 didn't seem
to quite give me what I wanted.  I still seem to be experiencing a bit of
confusion with all the different map types and how to structure them.

Can anyone jump in with an explanation, or some example code?
Thanks!



#declare ImageMap =
texture {
     image_pattern { png "AlphaMirror2.png" use_alpha once}
  texture_map {
   [0.00 texture_map {
    [0.00 pigment {Black}]  //  DullGold]
    [1.00 pigment {White}]  //  DullGold]
    }]
   [1.00 pigment { transmit 1 }]]
   }
}


Post a reply to this message

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