POV-Ray : Newsgroups : povray.general : Image Map Server Time
4 Aug 2024 08:17:46 EDT (-0400)
  Image Map (Message 1 to 2 of 2)  
From: md2161
Subject: Image Map
Date: 8 Jul 2003 04:14:18
Message: <3f0a7d5a$1@news.povray.org>
Hi,
I'm trying to map an image to a plane, as described in the tutorial.  I've
added the once keyword.  However, POVray maps a single row of pixels
infinitely in the Z direction.  How can I get it to render the whole image
only once?
Here's the code:

plane {
 y,
 0
 pigment {
  image_map {
   png "axes1.png"
   once
  }
 }
}


Post a reply to this message

From: Warp
Subject: Re: Image Map
Date: 8 Jul 2003 04:29:37
Message: <3f0a80f0@news.povray.org>
md2161 <bla### [at] blahblah> wrote:
> plane {
>  y,
>  0
>  pigment {
>   image_map {
>    png "axes1.png"
>    once
>   }
>  }
> }

  Your plane is in the x-z plane, while the image map is in the x-y plane.

  Rotate the pigment by x*90.

-- 
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.