POV-Ray : Newsgroups : povray.general : How is the arrangement of texture, pigment, and finish? : Re: How is the arrangement of texture, pigment, and finish? Server Time
19 Apr 2024 18:48:55 EDT (-0400)
  Re: How is the arrangement of texture, pigment, and finish?  
From: Bald Eagle
Date: 1 Feb 2020 21:05:01
Message: <web.5e362e25a5419ea04eec112d0@news.povray.org>
"Kima" <nomail@nomail> wrote:
> It may seem a stupid question, but what is the difference between
>
> object{ ...
>     texture{
>         pigment{ ... }
>         finish{ ... }
>     }
> }
>
> and
>
> object{ ...
>     pigment{ ... }
>     finish{ ... }
> }
>
> and
>
> object{ ...
>     pigment{ ...
>         finish{ ... }
>     }
> }

Functionally, I guess it will come down to syntax, and what can and cannot be
automatically "upgraded" from a lesser to a wider scope "thing".
Not sure about the last one - I had no idea you could put a finish statement
_inside_ a pigment statement.

material is the widest scope, acting as a kind of wrapper for texture, normal,
finish, interior

texture is a wrapper for pigment and color

I'm sure it may be covered ok in the docs, though those can be less clear at
times.  ;)

I'm sure someone else has a better, more accurate explanation.

The thing to keep in mind is that POV-Ray has grown sort of organically from an
independent seed - and it's still growing, so there are things that change, and
work _almost_ all of the time, and some things seem to work all of the time but
are really "broken" if you go digging deep enough...

So just experiment with what works and try to debug to the best of your ability.
Texture maps and material maps drive me nuts.


Post a reply to this message

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