POV-Ray : Newsgroups : povray.binaries.images : Alienese : Re: Alienese Server Time
2 Nov 2024 14:14:23 EDT (-0400)
  Re: Alienese  
From: Tek
Date: 19 Sep 2010 20:30:26
Message: <4c96ab22@news.povray.org>
"Alain" <aze### [at] qwertyorg> wrote in message 
news:4c963893$1@news.povray.org...

>
>> One thing I completely didn't understand was the need to
>> reverse the cell scaling for the inner pigment. I would have
>> expected that scaling the cell pattern up would give me larger
>> cells but not affect the scaling of pigments in the pigment_map.
>> But leaving out the correction factor just gave me horizontal
>> streaks (3.6.1 and 3.7 beta 39).
>
> When you scale a pigment or texture, you scale all of it, including any 
> sub pattern or texture. The pigment_map is effectively part of the cells 
> pattern.
> You can think of scaling as similar to a magnifying glass. It don't 
> discriminate between the various parts.

Exactly. You can avoid this using pigment_pattern, like so:

pigment_pattern { cells scale <CELL_WIDTH,1,1> } //prevent scale from 
affecting child pigments
translate -0.5*x // allow this to affect child pigments
pigment_map {
    [etc..


-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

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