POV-Ray : Newsgroups : povray.binaries.images : Image Maps (from povray.newusers) - attached files (1/1) : Re: Image Maps (from povray.newusers) - attached files (1/1) Server Time
7 Aug 2024 23:23:50 EDT (-0400)
  Re: Image Maps (from povray.newusers) - attached files (1/1)  
From: etrask
Date: 16 Nov 2005 14:50:01
Message: <web.437b8ba7aacb514e45da7f10@news.povray.org>
Perhaps the desired effect is something I am missing, but I recently made a
pool ball, number 9 to be specific, using entirely procedural methods.

#declare texSpot =
  texture {
    pigment {
      gradient z
      turbulence 0
      color_map {
        [ 0.00 color rgbt <1,1,1,1> ]
        [ 0.95 color rgbt <1,1,1,1> ]
        [ 0.95 color rgbt <1,1,1,0> ]
        [ 1.00 color rgbt <1,1,1,0> ]
      }
      scale 2
    }
  }

#declare texStripes =
  texture {
    pigment {
      gradient y
      turbulence 0
      color_map {
        [ 0.00 color rgb <1,1,1> ]
        [ 0.25 color rgb <1,1,1> ]
        [ 0.25 color rgb <0.98,0.98,0> ]
        [ 0.75 color rgb <0.98,0.98,0> ]
        [ 0.75 color rgb <1,1,1> ]
        [ 1.00 color rgb <1,1,1> ]
      }
    }
    finish {
      ambient 0
      diffuse 1
      specular 0.8
      roughness 1/128
      reflection {
        0.0625, 1/3
        fresnel on
        metallic
      }
    }
    scale 2
    translate <0,1,0>
  }
#declare text9 =
  union {
    text {
      ttf "bookos.ttf" "9" 10, 0
      translate <-0.21,-1/3,-5>
      rotate <90,0,0>
    }
    box {
      <-0.21,-0.05,-5>
      <0.3,-0.1,5>
      translate <0,-1/3,0>
      rotate <90,0,0>
    }
    translate <-0.07,0,0>
    scale 1/2
  }

#declare texText9 =
  texture {
    pigment {
      object {
        text9
        rotate <-90,0,0>
        color rgbt <1,1,1,1>
        color rgb <0,0,0> // inside
      }
      turbulence 0
      warp { planar }
    }
  }
sphere {
  <0,0,0>
  1
  texture { texPoolBall }
}


Post a reply to this message

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