POV-Ray : Newsgroups : povray.general : Blasted infernal image maps III : Re: Blasted infernal image maps III Server Time
9 Aug 2024 03:18:27 EDT (-0400)
  Re: Blasted infernal image maps III  
From: Christoph Hormann
Date: 21 Aug 2000 10:11:15
Message: <39A138A9.679796E7@schunter.etc.tu-bs.de>
"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] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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