|
|
Dennis Miller wrote:
> Very nice. Can you describe how you did the eye? No post processing in
> Photoshop?? {:-)
No post-processing what so ever, I never do.
Here is the relevant part of the code, with some comments.
I hope this helps.
Veijo
box { <0,0,0>, <1,1,0.01>
pigment { image_map { tga "eye.tga" } } // the eye photo,
// which is a straight crop from a larger photo
translate <-0.5,-0.5,0> scale <1.5,1,1>
// translate to the origin, restore format to 3:2
rotate 18.5*x translate <0,-0.09,1> } // rotate to correct
// for the perspective as the camera isn't quite horizontal
sphere { <-0.06,-0.1,1.02> 0.03 texture { T_Gold_3C } }
// NB. this sphere is there just for a visual effect
sphere { <-0.07,-0.145,1.18> 0.295
// for the iris reflections
// position and dimensions empirical
texture { T_Glass3 } interior { I_Glass } }
// actually, these two spheres ought to be unioned
// with the photo before the corrective rotation
union { // this does the job
height_field {
tga "hf2b.tga" // a bozo height field
smooth scale <2, 0.015, 2> }
box { <0,-0.101,0>, <20,-0.098,15> }
// something like this seems to be required to make the HF work
rotate -90*x translate <-1,-1,0.7>
pigment { rgbt <1,1,1,1> } interior { ior 1.05 }
// the ior value is empirical, modify ad lib
}
Post a reply to this message
|
|