|
![](/i/fill.gif) |
"davidafisher" <dav### [at] copper net> wrote:
> I have generated a sphere to represent the moon code below, but I would like
> to add an image to the sphere e.g. pigment { image_map { jpeg "y842.jpg"
> map_type 1 once } }
>
> but how do I combine the two so I get the image, plus the bumpiness, etc??
>
> DavidF
Try this, assuming you're using a spherical projection map:
#declare moon_tex = texture {
pigment {
image_map {
jpeg "moon_usgs.jpg" // the file to read (iff/tga/gif/png/jpeg/tiff/sys)
map_type 1 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized distance
} // image_map
}
normal {
bump_map { // uses image color or index as bumpiness
jpeg "moonbump_pixelemporium.jpg" // the file to read
map_type 1 // 0=planar, 1=spherical, 2=cylindrical, 5=torus
interpolate 2 // 0=none, 1=linear, 2=bilinear, 4=normalized
distance
bump_size 1 // 0...3
} // bump_map
}
}
//-----------------------
Mike
Post a reply to this message
|
![](/i/fill.gif) |