POV-Ray : Newsgroups : povray.general : Can I bake UV textures with Povray? : Re: Can I bake UV textures with Povray? Server Time
2 Aug 2024 18:11:03 EDT (-0400)
  Re: Can I bake UV textures with Povray?  
From: Tor Olav Kristensen
Date: 20 Aug 2004 10:56:15
Message: <4126110f$1@news.povray.org>
Tor Olav Kristensen wrote:
...
> This code takes the procedural texture "residing"
> in the region from <0, 0, 0> to <1, 1, 0> and
> maps it onto a torus. It can of course be mapped
> onto any primitive that has support for UV-mapping
> in POV-Ray.

Here's another exapmple

#declare MyTexture =
   texture {
     pigment {
       marble
       color_map {
         [ 0.2 color rgb <1.0, 0.8, 0.0> ]
         [ 0.7 color rgb <1.0, 1.0, 1.0> ]
       }
       turbulence 0.7
       scale <1, 3, 1>/6
     }
     normal {
       marble 0.3
       turbulence 0.7
       scale <1, 3, 1>/6
     }
     finish {
       ambient 0.2
       specular 0.8
     }
   }

sphere {
   -y, 4
   texture { uv_mapping MyTexture }
}

-- 
Tor Olav
http://subcube.net
http://subcube.com


Post a reply to this message

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