POV-Ray : Newsgroups : povray.newusers : Tiling an image map Server Time
25 Nov 2024 05:27:40 EST (-0500)
  Tiling an image map (Message 1 to 2 of 2)  
From: Brandon (newbie)
Subject: Tiling an image map
Date: 21 May 2006 02:50:01
Message: <web.44700c87152dc904a96d47b60@news.povray.org>
I have applied an image map to a plane, but I found that it is stretched
along the whole thing and only repeated in one direction. I want it to tile
on the plane evenly. How can I do this?

My code looks like so:

plane {
  y, -2
  pigment { image_map {jpeg "b26.jpg"}
  }
}


Post a reply to this message

From: Tim Nikias
Subject: Re: Tiling an image map
Date: 21 May 2006 03:30:04
Message: <447016fc@news.povray.org>
The image isn't lying on the y-plane, but rather on the z/-z plane. What you 
need to do, is rotate the image_map to correspond to your plane:

plane { y, -2  pigment { image_map {jpeg "b26.jpg"} rotate x*90 }}

That should do it. And the image should then properly repeat in all 
directions.

Regards,
Tim


-- 
aka "Tim Nikias"
Homepage: <http://www.nolights.de>


Post a reply to this message

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