POV-Ray : Newsgroups : povray.advanced-users : UV Repeat in image_map : Re: UV Repeat in image_map Server Time
28 Apr 2024 17:30:13 EDT (-0400)
  Re: UV Repeat in image_map  
From: Alain
Date: 31 Jan 2018 18:43:17
Message: <5a725495@news.povray.org>
Le 18-01-31 à 14:38, Roland Melkert a écrit :
> "Roland Melkert" <nomail@nomail> wrote:
>> I'm now using this, which seems to work fine.
> 
> Edit: some corrections fyi
> ---------
> #macro getPngWarp(idx)
>    #local doU=getPngNeedsURepeat(idx);
>    #local doV=getPngNeedsVRepeat(idx);
> 
>    #if ((doU | doV) & !(doU & doV)) //xor
>     #if (doU)
>       warp { repeat x }
>     #else
>       warp { repeat y }
>     #end
>    #end
> #end
> 
> 
> 
> 
Now, you can add some changes:

      warp { repeat x flip x}
Alternate the image with it's mirrored version.
or
      warp { repeat x flip y}
Alternating normal and upside down.


Post a reply to this message

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