POV-Ray : Newsgroups : povray.tools.poser : Tiling photo textures in Pov : Re: Tiling photo textures in Pov Server Time
26 Sep 2021 11:40:00 EDT (-0400)
  Re: Tiling photo textures in Pov  
From: Hildur K 
Date: 14 Aug 2007 07: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


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 2003-2021 Persistence of Vision Raytracer Pty. Ltd.