POV-Ray : Newsgroups : povray.advanced-users : UV Repeat in image_map : UV Repeat in image_map Server Time
26 Apr 2024 03:03:43 EDT (-0400)
  UV Repeat in image_map  
From: Roland Melkert
Date: 30 Jan 2018 14:50:01
Message: <web.5a70cb2bb38cac61c949581a0@news.povray.org>
Hi all,

For an OpenGL based export I need to sometimes repeat only the u or v dimension
of a texture.

I've been searching but it seems you can only disable repeat for both u and v
combined using the "once" keyword in the concerning image_map block.

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


Post a reply to this message

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