POV-Ray : Newsgroups : povray.general : It's 90% about textures (and finishes) : Re: It's 90% about textures (and finishes) Server Time
4 Aug 2024 18:21:03 EDT (-0400)
  Re: It's 90% about textures (and finishes)  
From: Mike Williams
Date: 6 Mar 2003 20:08:14
Message: <TwEMgAA0$+Z+EwJk@econym.demon.co.uk>
Wasn't it Christopher James Huff who wrote:

>Alpha maps...I've long wanted transparency separated from color. Making 
>transparency controllable by a pattern or function would be incredibly 
>powerful.

It's already achievable in POV 3.5. This is a texture I've used for
importing transparency maps from Poser. "transmap.jpg" is used to
control the transparency and "texture.jpg" is used to control the
colour. Obviously, the two image_maps could be replaced by any pattern
or function.

texture {
  pigment_pattern {image_map {jpeg "transmap.jpg" interpolate 2}}
  texture_map {
     [0 pigment {rgbt <0,0,0,1>}]
     [1 pigment {image_map {jpeg "texture.jpg" interpolate 2}}]
  }      
}

I guess the same technique could be used to manage specularity mapping,
but I've not tried it.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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