|
![](/i/fill.gif) |
"Greg M. Johnson" wrote:
>
> I want a mesh object to have a texture, say
> #declare Texture001= .........................
>
> And then to have an image map applied as a decal in one small place on
> it. (Application: a serial number on a military object).
>
> How do I do this?
>
> Simply puting an image map ontop of or after the texture declaration
> makes the whole object transparent!
Are you sure ?
If you use the image_map texture as the top layer in a layered texture, things
should work.
>
> Also, what should the image be? I want a text decal, so I made it a TGA
> in a paint program, where I "masked out" the non-letter parts of the
> image.
>
You should make it a 256 color png and use:
image_map {
png "mypic.png"
once
transmit 1, 1.0
}
then all pixels with index 1 are completely transparent.
Christoph
--
Christoph Hormann <chr### [at] gmx de>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |