On 10/25/22 00:20, neri-engineering wrote:
> I've been banging my head against the wall trying to use the image "wood.jpg"
> for each of the checker boxes.
Perhaps something like:
..
#declare Plane00 = plane { y, 0 }
#macro ImageMap00(_HF) // Macro due my tcl command wrapper of SDL...
#if (_HF=0)
image_map { "wood.jpg"
#else
"wood.jpg"
#end
#if (_HF=0)
map_type 0
interpolate 2
}
#end
#end
#declare Pigment00 = pigment { ImageMap00(0) rotate x*90 }
#declare Pigment01 = pigment { Pigment00 rotate y*90 }
#declare Pigment02 = pigment {
checker
pigment { Pigment00 }
pigment { Pigment01 }
}
#declare Texture02 = texture {
pigment { Pigment02 }
normal { granite 0.2 scale 0.3 }
finish { phong 0.6}
// scale 0.5
}
#declare Obj02 = object { Plane00 texture { Texture02 } }
//--- scene ---
// camera... light...
object { Obj02 }
..
Bill P.
Post a reply to this message
|