POV-Ray : Newsgroups : povray.general : Ok now its not mapping right. Server Time
5 Nov 2024 13:27:21 EST (-0500)
  Ok now its not mapping right. (Message 1 to 2 of 2)  
From: Drew
Subject: Ok now its not mapping right.
Date: 5 May 1999 23:59:41
Message: <37310654.4024DA83@pilot.msu.edu>
I finally got my TGA to map onto the plane I was trying to map it onto,
but instead of looking like a grid as I wanted it it looks like a series
of parallel dashed lines extending to the horizon. TheTGA I made is just
a square with two perpindicular lines rinning through it so it will
looks like a grid when its mapped corectly.
-Drew


Post a reply to this message

From: Ken
Subject: Re: Ok now its not mapping right.
Date: 6 May 1999 00:35:09
Message: <37310D65.903E7A1@pacbell.net>
Drew wrote:
> 
> I finally got my TGA to map onto the plane I was trying to map it onto,
> but instead of looking like a grid as I wanted it it looks like a series
> of parallel dashed lines extending to the horizon. TheTGA I made is just
> a square with two perpindicular lines rinning through it so it will
> looks like a grid when its mapped corectly.
> -Drew


  I have a feeling you need to rotate you image map to align to the
plane you are applying it to. For example it sounds like you are trying
to map it to a  Y plane used as a floor surface. To orient it properly
try the following:

      plane { y, 0
    pigment {
  image_map { tga "image.tga" interpolate 2 
            }                   //   end image_map
              translate -0.5    // this centers the image to the origin
                 rotate 90*x    // rotate to match the surface of the plane
                  scale <1,1,1> // what ever scale you wish to use here
            }                   //   end pigment
          }                     //   end plane object


  This will work for a plane that is oriented in the Y direction. You will
have to rotate differently for the other two plane directions.



-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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