POV-Ray : Newsgroups : povray.newusers : image_map on deformed cylinder : image_map on deformed cylinder Server Time
2 Nov 2024 11:23:48 EDT (-0400)
  image_map on deformed cylinder  
From: Dr  Doogie
Date: 28 Apr 2004 14:15:00
Message: <web.408ff3d3352d67047551a730@news.povray.org>
Hi everyone,

I need to map an image on a deformed cylinder (<0,0,0> , <0,1,0>, 25 scale
<0.5, 1, 1.5> )

When i map an image on it, it's not correct. There are mapping imperfections
on the narrowest edges (on the 2 sides where the radius of curvature is at
its lowest). The part of the image mapped on these sides is more stretched
(horizontally) than the rest. (Actually i map an image that features some
number like 123456790 and the 2 that are on the edges are lot more wider
than the others).

Is there a better way to map an image on a deformed cylinder ?

Here an excerpt of my code :

union {
 cylinder { <0, 0, 0>, <0, 1, 0>, 25
  scale <0.5, 1, 1.5>
 }

 texture {
  pigment {
   image_map {
    png "C:\Image.388\mapCylinder.png"
    map_type 2
    interpolate 2

    filter all 0.1
   }
  }
  finish { reflection {0.0} ambient 0.0 diffuse 0.3 }
 }
 scale<1,100,1>
}

Thank you for your help
Dr Doogie


Post a reply to this message

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