POV-Ray : Newsgroups : povray.newusers : image masks? : Re: image masks? Server Time
29 Jul 2024 22:33:45 EDT (-0400)
  Re: image masks?  
From: Jim Charter
Date: 14 Feb 2005 09:00:02
Message: <4210aee2@news.povray.org>
Mienai wrote:
> So I have an image that I want to mask onto a surface to make only part of
> it reflective (it's a logo).  I can place the image map on the surface and
> get the excess transparent but when I apply the finish, the transparent
> part picks this up as well so I get specular where I don't want them.
> Anyone know how to fix/get around this?
> 
> 
Not quite sure what you have and havenot done but it reads like you need 
to have your desired finish parallel your transparency?

ie

#declare T_Logo =    //not transparent
texture {
	pigment { ...some colour... transmit 0 }
	finish { .... reflection 1 }
};

#declare T_Ground =   //transparent
texture {
	pigment { rgb 1 transmit 1 }
	finish { reflection 0 diffuse 0 specular 0 }
};

object {
	...object...
	texture {
		image_pattern {
			sys "logo.bmp"
			texture_map {
				[0 texture { T_Logo }]
				[1 texture { T_Ground }]
			}
		}
	}
}

Or maybe I am not understanding the problem?


Post a reply to this message

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