POV-Ray : Newsgroups : povray.pov4.discussion.general : Feature Request - Texture Overlay : Re: Feature Request - Texture Overlay Server Time
19 Apr 2024 09:39:35 EDT (-0400)
  Re: Feature Request - Texture Overlay  
From: Kyle
Date: 25 Jan 2008 08:26:46
Message: <6oojp3lpnpo4po67jf5e19dl842v4c5oqi@4ax.com>
On Fri, 25 Jan 2008 11:30:10 +0100, "scott" <sco### [at] laptopcom> wrote:

>> Functionality that I think would be helpful is a method to overlay a 
>> previously textured object with
>> a new texture.  Perhaps this could be specified with an "overlay" keyword, 
>> such as this:
>>
>> object {
>>  o_PreviouslyTexturedObject
>>  texture {
>>    pigment { p_PartiallyClearPigment }
>>    overlay
>>  }
>> }
>
>Uh - you can already do this can't you? just take out the "overlay" keyword 
>and it works!
> 

With basic objects, yes, but not with complex objects.

Try this...


#declare p_PartiallyClearPigment =
  pigment {
    granite
    color_map {
      [0 rgbf 1]
      [1 rgb <1,0,0>]
    }
  }

#declare o_PreviouslyTexturedObject =
  union {
    sphere { 
      x/2, 0.5 
      pigment { rgb <0,1,0> } 
    }
    sphere { 
      -x/2, 0.5 
      pigment { rgb <0,0,1> } 
    }
  }

object {
  o_PreviouslyTexturedObject
  texture {
    pigment { p_PartiallyClearPigment }
    //overlay
  }
}


Post a reply to this message

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