POV-Ray : Newsgroups : povray.tools.poser : Tiling photo textures in Pov : Re: Tiling photo textures in Pov Server Time: 20 Jul 2008 11:21:10 GMT
  Re: Tiling photo textures in Pov  
From: Hildur K 
Date: 14 Aug 2007 11:30:01
"fls13" <fls13 [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

Copyright 1991-2004 POV-Team™