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 11:28:10 EDT (-0400)
  Re: How is the arrangement of texture, pigment, and finish?  
From: Alain Martel
Date: 2 Feb 2020 10:02:14
Message: <5e36e476$1@news.povray.org>
Le 2020-02-01 à 19:10, Kima a écrit :
> It may seem a stupid question, but what is the difference between
> 
> object{ ...
>      texture{
>          pigment{ ... }
>          finish{ ... }
>      }
> }

Define the whole texture.

> 
> and
> 
> object{ ...
>      pigment{ ... }
>      finish{ ... }
> }

Define the pigment with the default finish, then define a custom finish 
that replace the default.

> 
> and
> 
> object{ ...
>      pigment{ ...
>          finish{ ... }
>      }
> }

Start by defining a pigment with the default finish, but then define a 
custom finish before finishing the pigment.

> 
> 

There is no functional difference between them, just different 
flowcharts doing the same thing.

As it is possible, but not encouraged, to #declare an object from within 
a pigment and use it elsewhere, there should be no problem with the 
third and it should give the same result as the first two. It's just not 
a recommended structure.


Post a reply to this message

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