POV-Ray : Newsgroups : povray.general : Image_map on the caps of a cylinder Server Time
16 Nov 2024 19:19:43 EST (-0500)
  Image_map on the caps of a cylinder (Message 1 to 7 of 7)  
From: Greg Lee
Subject: Image_map on the caps of a cylinder
Date: 5 Sep 2003 15:21:11
Message: <3f58e227$1@news.povray.org>
Hiya all....

I'm trying to create a washer shape (difference of 2 cylinders) and I want
to put an image_map on the ends/caps of the cylinder.  POVRay seems to want
to wrap the image_map around the cylinder.  Is there any way around this
problem?

Greg


Post a reply to this message

From: Warp
Subject: Re: Image_map on the caps of a cylinder
Date: 5 Sep 2003 17:11:55
Message: <3f58fc1b@news.povray.org>
Greg Lee <lee### [at] govonca> wrote:
> I'm trying to create a washer shape (difference of 2 cylinders) and I want
> to put an image_map on the ends/caps of the cylinder.  POVRay seems to want
> to wrap the image_map around the cylinder.  Is there any way around this
> problem?

  One solution which comes to mind is using a disc primitive with the
image mapped onto it (with planar mapping) and putting the disc on the
end of the cylinder (you can make the cylinder open to avoid coincident
surfaces).

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Frans Verbaas
Subject: Re: Image_map on the caps of a cylinder
Date: 6 Sep 2003 09:50:25
Message: <3f59e621@news.povray.org>
Make a block with the thickness of your washer as one dimension and other
dimensions somewhat larger than the outer diameter of your washer.
Apply the Image map to the block
SCG-intersect this block with your cylinders.

have fun,
Frans.
"Warp" <war### [at] tagpovrayorg> schreef in bericht
news:3f58fc1b@news.povray.org...
> Greg Lee <lee### [at] govonca> wrote:
> > I'm trying to create a washer shape (difference of 2 cylinders) and I
want
> > to put an image_map on the ends/caps of the cylinder.  POVRay seems to
want
> > to wrap the image_map around the cylinder.  Is there any way around this
> > problem?
>
>   One solution which comes to mind is using a disc primitive with the
> image mapped onto it (with planar mapping) and putting the disc on the
> end of the cylinder (you can make the cylinder open to avoid coincident
> surfaces).
>
> -- 
> plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
> sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
> density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
> <1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Alf Peake
Subject: Re: Image_map on the caps of a cylinder
Date: 6 Sep 2003 10:00:22
Message: <3f59e876@news.povray.org>
"Greg Lee" <lee### [at] govonca> wrote in message
news:3f58e227$1@news.povray.org...
> Hiya all....
>
> I'm trying to create a washer shape (difference of 2 cylinders) and
I want
> to put an image_map on the ends/caps of the cylinder.  POVRay seems
to want
> to wrap the image_map around the cylinder.  Is there any way around
this
> problem?

Would this work?

cylinder{ 0, z, 0.5
   pigment{ image_map{ jpeg "whatever.jpg" } translate -0.5 }
}

Alf


Post a reply to this message

From: Stephen McAvoy
Subject: Re: Image_map on the caps of a cylinder
Date: 6 Sep 2003 12:24:07
Message: <qg2klvc32i7ulgejtn3g9tlfds46mdeth5@4ax.com>
On Fri, 5 Sep 2003 15:20:35 -0400, "Greg Lee" <lee### [at] govonca> wrote:

>Hiya all....
>
>I'm trying to create a washer shape (difference of 2 cylinders) and I want
>to put an image_map on the ends/caps of the cylinder.  POVRay seems to want
>to wrap the image_map around the cylinder.  Is there any way around this
>problem?
>

Another way to do it would be to create a cylindrical mesh and map your images
using UVMapper. 

Regards
        Stephen


Post a reply to this message

From: Stephen McAvoy
Subject: Re: Image_map on the caps of a cylinder
Date: 6 Sep 2003 17:11:23
Message: <lbjklvo64nbtb47ge1rbdnde1jkd3417hl@4ax.com>
On Sat, 06 Sep 2003 17:24:05 +0100, Stephen McAvoy <McA### [at] aolcom> wrote:

>Another way to do it would be to create a cylindrical mesh and map your images
>using UVMapper. 
>
I've posted a sample in povray.binaries.animations

Regards
        Stephen


Post a reply to this message

From: Greg Lee
Subject: Re: Image_map on the caps of a cylinder
Date: 8 Sep 2003 12:07:02
Message: <3f5ca926@news.povray.org>
Hiya all.....


Thanks for all the info.  I tried Warp's suggestion and it worked like a
charm.  I will keep Stephen's suggestion, as I can see this being useful
with nonstandard face.

Thanks again

Greg
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3f58fc1b@news.povray.org...
> Greg Lee <lee### [at] govonca> wrote:
> > I'm trying to create a washer shape (difference of 2 cylinders) and I
want
> > to put an image_map on the ends/caps of the cylinder.  POVRay seems to
want
> > to wrap the image_map around the cylinder.  Is there any way around this
> > problem?
>
>   One solution which comes to mind is using a disc primitive with the
> image mapped onto it (with planar mapping) and putting the disc on the
> end of the cylinder (you can make the cylinder open to avoid coincident
> surfaces).
>
> --
> plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
> sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
> density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
> <1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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