|
|
I need a bit of help. I made a depth_map of a Poser head (see attached)
and thought that using it in the Rockhead code would be straightforward.
It is, except that the face remains flat with hardly a hint of features.
I believe there is nothing wrong with the depth_map itself, so how can I
improve on this? Here is the basic code used:
//==start code==============================
#declare granite_rock=
texture{
pigment{
pigment_pattern{
bumps scale .15
}
pigment_map{
[-.2 rgb 1]
[.5
crackle solid scale .0125/4
color_map{
[0 rgb 1]
[.5 rgb <1,.875,.75>-.5]
[1 rgb 0]
}
]
}
}
normal{crackle 1 solid scale .0125/4}
finish{brilliance .5 diffuse .785}
}
#declare rock=
function{
pigment {
spherical //or:
//boxed
pigment_map {
[0.0 rgb 0]
[0.5 pigment_pattern {
image_map {
png"Mapping_test.png" gamma 1.0 interpolate 2
}
translate-(x+y)/2
scale 2
}
pigment_map {
[0.0 rgb 0]
[0.5 granite
scale <5, 0.5, 5>
poly_wave 0.5
rotate z*12
color_map {
[0 rgb 0.25]
[1 rgb 0.75]
}
]
[1.0 rgb 1]
}
]
[1.0 rgb 1]
}
}
}
isosurface {
function {
0-rock(x,y,z).grey+0.05
}
accuracy 0.001
max_gradient 2
all_intersections
contained_by {box {<-1,-1,-1>,<1,1,1>}}
texture {granite_rock}
}
//==end code================================
Thanks!
--
Thomas
Post a reply to this message
Attachments:
Download 'mapping_test.png' (48 KB)
Preview of image 'mapping_test.png'
|
|