POV-Ray : Newsgroups : povray.advanced-users : Removing highlights from transparent texture areas : Re: Removing highlights from transparent texture areas Server Time
6 Oct 2024 14:14:45 EDT (-0400)
  Re: Removing highlights from transparent texture areas  
From: Samuel Benge
Date: 5 Oct 2006 13:52:56
Message: <45254678@news.povray.org>
Random Pete wrote:
> I have a texture with square areas of transparency which looks like a mesh
> speaker casing. I want specular highlights to show only on the visible areas
> of texture, and not the transparent areas in between. Unfortunately it seems
> the default behaviour is for transparent textures to display highlights
> (which makes sense for glass-like textures but not in this case). Is there
> a way to change this?
> 
> Pete

Is your texture a bitmap (or, png, gif, etc.)? If so, you may have to 
use a texture_map like this:

#declare mytex = pigment{image_map{....regular stuff}}

object{
  myobj
  texture{
   pigment_pattern{ mytex }
   texture_map{
    [0 pigment{mytex} finish{specular 1}]
    [1 pigment{mytex} finish{specular 0}]
   }
  }
}

I hope this makes sense to you. Good luck!

~Sam


Post a reply to this message

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