POV-Ray : Newsgroups : povray.tools.poser : Tiling photo textures in Pov Server Time: 16 Dec 2018 01:42:58 GMT
  Tiling photo textures in Pov (Message 1 to 3 of 3)  
From: fls13
Subject: Tiling photo textures in Pov
Date: 14 Aug 2007 01:50:01
Message: <web.46c109c13e96d829c384b2aa0@news.povray.org>
Never figured out how to do it, but never needed to up till now. Can anyone
point me to a code snippet?


Post a reply to this message

From: Hildur K 
Subject: Re: Tiling photo textures in Pov
Date: 14 Aug 2007 11:30:01
Message: <web.46c19038cd9acd5f3e4d92110@news.povray.org>
"fls13" <fls### [at] netzeronet> wrote:
> Never figured out how to do it, but never needed to up till now. Can anyone
> point me to a code snippet?

Here are the basics:


#declare Material1 =
   material  // Material1
   {
      texture
      {
         pigment
         {
            image_map
            {
               gif   "C:povmap.gif"
            }
            scale  <1.0, 1.0, 1.0>
            rotate    <0.0, 0.0, 0.0>
            translate    <0.0, 0.0, 0.0>
         }
      }
   }


replace "C:povmap.gif" with your own path

use scale, rotate and translate to fit the bitmap onto your object
usually needs some tweaking but you´ll get the hang of it

if you are using a .tga map with a transparent background Povray
automatically makes that part transparent in the rendering

Hope this helps

Hildur


Post a reply to this message

From: Hildur K 
Subject: Re: Tiling photo textures in Pov
Date: 14 Aug 2007 11:35:01
Message: <web.46c19278cd9acd5f3e4d92110@news.povray.org>
"fls13" <fls### [at] netzeronet> wrote:
> Never figured out how to do it, but never needed to up till now. Can anyone
> point me to a code snippet?

Oh I forgot,

for tiling you use scale and a number smaller than 1
<1.0, 1.0, 1.0> is tiling 1x1x1 times
<0.5, 0.5, 0.5> is tiling 2x2x2 times
<0.1, 0.1, 0.1> is tiling 10x10x10 times

often you also need to adjust translate as well to make the bitmap fit

Hildur


Post a reply to this message

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