POV-Ray : Newsgroups : povray.general : Tiling an image map with non-zero map_type : Tiling an image map with non-zero map_type Server Time
1 Aug 2024 00:19:32 EDT (-0400)
  Tiling an image map with non-zero map_type  
From: Tom York
Date: 25 Jun 2006 07:50:00
Message: <web.449e781d66a2ccd77d55e4a40@news.povray.org>
I have a torus that I would like to wrap a bitmapped texture around. So, I
have something like

torus {
  1, 0.05

  pigment {
    image_map {
      png "image_for_torus.png"
      map_type 5 // or even just uv_mapping, since torus {} has it
      // ...
    }
  }
}

Well, this works as advertised. The problem is that the texture image would
need to be 20 times as long as it is high to maintain an equal resolution
in both the U and V directions. if I use a texture 256 pixels high this
implies that I need to make it over 5000 pixels across to get constant
resolution, which seems a bit excessive. I'm using a torus instead of a
mesh to save memory, and using such a large texture means more memory use.
It would be nice to be able to tile it, but the toroidal mapping explicitly
prevents this. Is there a way to do this while keeping the toroidal mapping?

Tom


Post a reply to this message

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