POV-Ray : Newsgroups : povray.general : Transforming an image_pattern{} : Re: Transforming an image_pattern{} Server Time
26 Apr 2024 17:34:11 EDT (-0400)
  Re: Transforming an image_pattern{}  
From: clipka
Date: 31 May 2018 03:33:49
Message: <5b0fa55d$1@news.povray.org>
Am 31.05.2018 um 08:48 schrieb Thomas de Groot:

>> #declare MyTex =
>>     texture {
>>       image_pattern {
>>         png "My_pattern.png" gamma 1.0 use_alpha
>>         ....
>>         } // end of image_pattern
>>
>>       transform{TRA} // THE MAIN TRANSFORM HERE
>>
>>     texture_map {
>>         [0.0  texture{...} or pigment{...} etc
>>         transform{TRA inverse}
>>         ]
>>         [1.0 texture{...} or pigment...} etc
>>          transform{TRA inverse}
>>         ]
>>                 }
>>             }
>>
> 
> This is a bit different! What you do here is (1) transform the
> image_pattern, then, (2) and separately, inverse transform the
> texture_map. That will give something very different I believe. The
> transform should be moved down to the complete texture level, e.g.:
> 
> texture {
>   image_map {}
>   texture_map {
>     [0.0 texture {} transform {TRA inverse}]
>     [1.0 texture {} transform {TRA inverse}]
>   }
>   transform {TRA}
> }

To the best of my knowledge, there is effectively no difference between
the two constructs. I would consider the latter more intuitive though,
for the very same reason you'd expect them to differ in effect.


Post a reply to this message

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