POV-Ray : Newsgroups : povray.advanced-users : UV Repeat in image_map : Re: UV Repeat in image_map Server Time
19 Apr 2024 11:26:35 EDT (-0400)
  Re: UV Repeat in image_map  
From: William F Pokorny
Date: 31 Jan 2018 08:45:53
Message: <5a71c891$1@news.povray.org>
On 01/30/2018 02:45 PM, Roland Melkert wrote:
> 
> Is there any way / work around to toggle the repeat for u or v separately?
> 
> I'm using this macro as a place holder
> 
> --------
> #macro getPngMapType(idx)
>    //POV-Ray does not support u or v only repeat.
>    // for the time being use repeat for both in all cases.
>   #if (getPngNeedsURepeat(idx) | getPngNeedsVRepeat(idx))
>    map_type 0
>   #else
>    map_type 0 once
>   #end
> #end
> 

Perhaps something like:

#declare PigImgMap0 = pigment {
     image_map { "mapUrpt.png" once map_type 0 interpolate 2 }
     warp { repeat x }
}

will work for you?

Bill P.


Post a reply to this message

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