|
 |
Hello! I created a picture with a gradient. I want to use it as a height map for
a sphere. However, only gray stripes are visible on the sphere.
#version 3.7;
#include "shapes.inc"
global_settings {
assumed_gamma 1.000000
max_trace_level 3
charset utf8
}
sky_sphere {
pigment {rgb<0.051, 0.051, 0.051>}
}
#declare Default_texture = texture{pigment {rgb 0.8}}
#declare Material = texture{
pigment{color srgbft <0.8000,0.8000,0.8000,0.0000,0.0000>}
finish{
diffuse 0.8000
brilliance 1.8000
}
}
#declare Material_001 = texture{
pigment{color srgbft <0.8000,0.8000,0.8000,0.0000,0.0000>}
normal{ bump_map{"/home/lanuhum/src/Thread_90.jpg" gamma 1.1000 map_type 0
interpolate 2 bump_size 5}
translate <0.0000,0.0000,0.0000>
rotate <0.0000,0.0000,0.0000>
scale <1.0000,1.0000,1.0000>/1
}
finish{
diffuse 0.8000
brilliance 1.8000
}
}
#declare data_Sphere_shape_ob = sphere { 0,1
texture {Material_001}
matrix <1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000>
}
#include "data_Cube_dec.inc"
object {data_Sphere_shape_ob
matrix <1.000000, 0.000000, 0.000000, 0.000000, -0.000000, -1.000000,
0.000000, 1.000000, -0.000000, 0.000000, 0.000000, 0.000000>
}
object {data_Cube_ob
matrix <1.000000, 0.000000, 0.000000, 0.000000, -0.000000, -1.000000,
0.000000, 1.000000, -0.000000, 0.000000, 0.000000, 0.000000>
}
light_source {
<4.08,5.9,-1.01>
color rgb<1, 1, 1>
fade_distance 29.9999828339
fade_power 1
}
camera {
perspective
location <0,0,0>
look_at <0,0,-1>
right <-1.7777777777777777, 0, 0>
up <0, 1, 0>
angle 49.134343
rotate <-26.440706, 46.691945, -0.000003>
translate <7.481132, 5.343666, 6.507640>
}
Post a reply to this message
Attachments:
Download 'bump_map.jpg' (64 KB)
Preview of image 'bump_map.jpg'

|
 |