POV-Ray : Newsgroups : povray.general : multiple pigment use--a basic inconsistency? : Re: multiple pigment use--a basic inconsistency? Server Time
29 Jul 2024 10:31:20 EDT (-0400)
  Re: multiple pigment use--a basic inconsistency?  
From: Kenneth
Date: 29 Jan 2013 16:05:00
Message: <web.510839563b1b12e0c2d977c20@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> In other words, the material{texture{pigment[...}}} 'hierarchy of importance'
> actually stops at texture{...}, conceptually speaking.
>

To clarify that a bit more: A 'material' container's function (the only one I
know of) is to encapsulate a texture{...} with an interior{...}--since they are
both separate code chunks, and there's no other way to #declare them together so
that the combination can be easily used in multiple places in the scene code.

The 'transform' keyword serves the same sole(?) purpose--

#declare my_transform =
transform{
rotate{...}
translate{...}
matrix{...}
--etc. etc.
}

And the docs say that using a transform block like this is more efficient for
POV-Ray than typing all those various individual 'transforms' every time they
are needed, as-is, in a group. Perhaps the same efficiency is produced by a
'material' container.


Post a reply to this message

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