POV-Ray : Newsgroups : povray.binaries.images : Cane : Cane Server Time
4 Nov 2024 22:23:01 EST (-0500)
  Cane  
From: William Tracy
Date: 8 Apr 2007 14:39:04
Message: <461936c8@news.povray.org>
A little project to get warmed up in POV again. :-) I think it turned 
out fairly well for what was essentially a one-day project. (Okay, the 
Saturday bled a little both into Friday and Sunday, but I spent a big 
chunk of Saturday actually away from the computer, so it evens out.)

This was my original reference for the texture:
http://www.medicalsupplygroup.com/DisplayImage.aspx?t=0&ImageID=1002508&ProductID=1005564

The photo actually felt a little too "perfect", so I tweaked it to be a 
tad more interesting. :-)

The rosewood in the photo actually has a single solid pigment, and I 
originally got decent results doing the same thing in my render. 
However, I wanted an image that looked good both in color and gray 
scale. It looked horrible in gray scale, so I broke down and added some 
wood grain (maybe a little too much wood grain). I'm sure there's room 
to improve the pattern, but I'm happy with it. :-)

The code is fairly simple, so here it is. If you render it, note the 
custom camera dimensions.

global_settings {
   ambient_light 0
}
plane {
   <0, 01, 0>,
   1
   pigment {color rgb 1}
}
union {
   difference {
     torus {
       5, 1
       translate y * 1
     }
     box {
       <0, 10, 10>
       <10, -10, -10>
     }
   }
   sphere {
     <0, 1, -5>, 1
   }
   cylinder {
     <0, 1, 5>,
     <85, 1, 5>,
     1
   }
   sphere {
     <85, 1, 5>, 1
   }
   translate <-40, 0, 01>
   texture {
     pigment {
       //color rgb <040, 015, 010> * 0.005
       wood
       turbulence 0.1
       color_map {
         [0 color rgb <40, 15, 10> * 0.005]
         [1 color rgb <20, 06, 03> * 0.015]
       }
       rotate y * 75
     }
     finish {phong 1}
     normal {
       agate
       agate_turb 0.5
       bump_size 0.1
     }
   }
}
camera {
   location <0, 100, 0>
   look_at 0
   up y / 4
   right x
}
light_source {
   <-150, 100, 200>
   color rgb 6
   area_light y * 200, x * 200, 50, 50
   adaptive 2
   circular
}
light_source {
   <30, 20, -30>
   color rgb 1
}


Post a reply to this message


Attachments:
Download 'cane.jpg' (9 KB)

Preview of image 'cane.jpg'
cane.jpg


 

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