POV-Ray : Newsgroups : povray.general : image map problem : Re: image map problem Server Time
5 Nov 2024 18:27:02 EST (-0500)
  Re: image map problem  
From: Mike Williams
Date: 20 Feb 2003 00:17:50
Message: <g40AiMAHPGV+Ewug@econym.demon.co.uk>
Wasn't it DL who wrote:
>I want to add an image map to four sides of the cube (excluding the top and
>bottom).  Currently, I can only see the image map from one side of the cube.
>If I move the camera around to the other sides, it is just black.  I rotate
>the cube and I still see black on all sides.  I know in the documentation it
>says the image map is projected onto the xy plane from the -z direction.
>How do I make it project onto the other planes?  Thanks.

You could try drawing six copies of the image you want onto your image
map and using uv mapping

box {0,1 uv_mapping pigment {image_map {png "image.png"}}}

If you don't care how your image_map aligns with the edges of the cube
(e.g. if it's a repeating texture), then you could use the original
image scaled down

box {0,1 uv_mapping pigment {image_map {png "image.png" }scale 1/3}}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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