POV-Ray : Newsgroups : povray.general : Mapping an Image to a Cylinder Server Time
29 Nov 2024 07:50:58 EST (-0500)
  Mapping an Image to a Cylinder (Message 1 to 3 of 3)  
From: Chambers
Subject: Mapping an Image to a Cylinder
Date: 24 Feb 2006 17:21:37
Message: <43ff86f1$1@news.povray.org>
I have an image_map that I'd like to map to a portion of a cylinder. 
Now, just using
image_map {
	png "my_image.png"
	map_type 2
}

Results in the image wrapping around the entire 360' of the cylinder. 
How can I limit this to a specific portion, say 60'?

...Chambers


Post a reply to this message

From: Warp
Subject: Re: Mapping an Image to a Cylinder
Date: 24 Feb 2006 17:33:10
Message: <43ff89a4@news.povray.org>
Chambers <bdc### [at] yahoocom> wrote:
> Results in the image wrapping around the entire 360' of the cylinder. 
> How can I limit this to a specific portion, say 60'?

  Use planar mapping (ie. the default), use 'once', scale it smaller
and then use a cylindrical warp.

-- 
                                                          - Warp


Post a reply to this message

From: Chambers
Subject: Re: Mapping an Image to a Cylinder
Date: 24 Feb 2006 17:48:11
Message: <43ff8d2b$1@news.povray.org>
Thanks Warp, that worked perfectly.

...Chambers


Post a reply to this message

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