|
![](/i/fill.gif) |
Whenn adding "uv_mapping" to a pigment in a function which is used for a
pigment in a texture it crashes beta13 (linux)
-> Speicherzugriffsfehler (english: segmentation fault?)
// ----- crashes -----
#declare f_png = function {
pigment {
uv_mapping // problem here?
image_map {png "plasma2.png"
map_type 0
interpolate 2
}
}
}
#declare T_tex =
texture {
pigment {
function { f_png (x,y,z).red }
}
}
box {
<0, 0, 0> <1, 1, 1>
texture {
T_tex
}
translate <0, 0, 1>
}
// ----- works -----
#declare f_png = function {
pigment {
image_map {png "plasma2.png"
map_type 0
interpolate 2
}
}
}
#declare T_tex =
texture {
pigment {
uv_mapping
function { f_png (x,y,z).red }
}
}
box {
<0, 0, 0> <1, 1, 1>
texture {
T_tex
}
translate <0, 0, 1>
}
Post a reply to this message
|
![](/i/fill.gif) |