POV-Ray : Newsgroups : povray.newusers : Use image_map for object transparency only? : Use image_map for object transparency only? Server Time
29 Jul 2024 14:23:14 EDT (-0400)
  Use image_map for object transparency only?  
From: zachrahan
Date: 12 Sep 2005 01:40:00
Message: <web.432512e5370c1e9c1e6432b90@news.povray.org>
Hello,

I'm trying to figure out a good way to use an image to specify only the
transparency of an object while still being able to specify the rest of the
texture directly in povray.

Specifically, I've got a set of complex shape outlines represented as
grayscale alpha masks. I'd like to apply the mask to a square polygon
object so that the object is fully opaque in the black (or white) regions,
fully transparent in the white (or black) regions, and of intermediate
opacity in the intermediate grays. Where the polygon is (partially) opaque,
I'd like to paint a procedural texture to it.

The eventual effect will be something like a stained-glass window with the
shapes created in an external paint program.

I can see how to use a texture map to use the mask to blend between a given
texture an a fully-transparent texture. However, is there a faster/better
way to do this just using image maps and/or layered textures?

Thanks,

Zach Pincus


Post a reply to this message

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