POV-Ray : Newsgroups : povray.newusers : Use image_map for object transparency only? : Re: Use image_map for object transparency only? Server Time
29 Jul 2024 14:18:28 EDT (-0400)
  Re: Use image_map for object transparency only?  
From: zachrahan
Date: 13 Sep 2005 03:00:01
Message: <web.43267884f72e9dca1e6432b90@news.povray.org>
[Replying to my own question for future reference of others.]

On close inspection of the documentation, it seems that image_pattern is the
best way to use a grayscale image as an opacity map:

texture {
  image_pattern { png "image.png" }
  texture_map {
    [0  texture { pigment {transmit 1 } }  ]
    [1 OtherTexture  ]
  }
}

Or for simple colors:

pigment {
  image_pattern { png "image.png" }
  pigment_map {
    [0  transmit 1  ]
    [1 OtherPigment  ]
  }
}


Post a reply to this message

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