POV-Ray : Newsgroups : povray.general : cylindrical image mapping & frequency : Re: cylindrical image mapping & frequency Server Time
2 Aug 2024 14:13:19 EDT (-0400)
  Re: cylindrical image mapping & frequency  
From: povray
Date: 3 Oct 2004 20:52:23
Message: <ue71m0hthv0e0vkuj1lf7p7qhrbrg6g70a@4ax.com>
On Mon, 04 Oct 2004 19:36:12 +1000, Peter Duthie
<pli### [at] warlordsofbeercom> wrote:

>Is it possible to set the frequency of a cylindrically mapped image map 
>to something other than one?
>
>Ie, currently if I map an image bitmap to a cylinder (map_type 2), I get 
>an image wrapped once around the Y axis, as documented.  However, what I 
>would like to do is map the texture such that N copies wrap around the Y 
>axis.
>
>For example, lets say I have a seamless texture, and a very large 
>cylinder close to the camera.  Up close the texture looks grainy, as it 
>is only wrapped once about the Y axis, however as it's seamless, and the 
>camera is only seeing a small portion of the surface, one could get away 
>with increasing the frequency of the texture about the Y axis to 
>something greater than one (and scale on the y axis appropriately).
>
>Is this possible?  If so, how?
>

  #declare desired_frequency = 2;  // integer >= 1

  pigment {
    image_map {
      tga "whatever.tga"
    }
    scale <1/desired_frequency, 1, 1>
    warp { cylindrical }
  }


Post a reply to this message

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