POV-Ray : Newsgroups : povray.newusers : newbie vs. layered textures. Should be trivial, but... Server Time
21 Dec 2024 23:55:45 EST (-0500)
  newbie vs. layered textures. Should be trivial, but... (Message 1 to 3 of 3)  
From: Scott M
Subject: newbie vs. layered textures. Should be trivial, but...
Date: 19 Apr 2014 15:40:00
Message: <web.5352d06cc6614d73ef4173070@news.povray.org>
I want to take one of the brass textures and layer a little oil and grime on it.
I thought this would be simple but I'm goofing up something very basic. I
thought I'd start with a completely transparent pigment, just to get the hang of
the syntax. Layering a transparent pigment should do absolutely nothing, but
instead my brass turns grey, roughly the background color.

#declare Plate  = box {<-4, .13, -4> <4, -.1, 4>
   texture {
     T_Brass_2A
     // finish { specular 0.90 roughness 0.21 ambient 0.05 }
     pigment {
        color rgbt <0,0,0,1>
     }
    }
 }
 Plate

....plus a skysphere of grey and an include for metals.inc. What am I not
understanding? Note that if I use an rgbt of 1,1,1,1 I get almost white (why?),
and 0,0,0,0 gives almost black (which makes more sense.)


Post a reply to this message

From: Warp
Subject: Re: newbie vs. layered textures. Should be trivial, but...
Date: 19 Apr 2014 15:54:19
Message: <5352d46a@news.povray.org>
Scott M <nomail@nomail> wrote:
> #declare Plate  = box {<-4, .13, -4> <4, -.1, 4>
>    texture {
>      T_Brass_2A
>      // finish { specular 0.90 roughness 0.21 ambient 0.05 }
>      pigment {
>         color rgbt <0,0,0,1>
>      }
>     }
>  }
>  Plate

To make layered textures you need to put them in separate 'texture'
blocks, like this:

#declare Plate  = box {<-4, .13, -4> <4, -.1, 4>
   texture {
     T_Brass_2A
     // finish { specular 0.90 roughness 0.21 ambient 0.05 }
   }
   texture {
     pigment {
        color rgbt <0,0,0,1>
     }
    }
 }

-- 
                                                          - Warp


Post a reply to this message

From: Scott M
Subject: Re: newbie vs. layered textures. Should be trivial, but...
Date: 19 Apr 2014 16:10:01
Message: <web.5352d700dee4dbebef4173070@news.povray.org>
Too obvious for words... thanks.


Post a reply to this message

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