|  |  | "Neil Kolban" <kol### [at] kolban com> wrote:
> Folks,
> Still a newbie here ...
>
> I have 6 images that I would like to apply to the 6 different faces of a
> cube.  Is there I way I can achieve that task?
>
> Neil
I suppose you could use csg difference to cut off small amounts of your cube
on each face and put a different texture on each face.
For example:
difference
{
   box{0 1} // no texture needed
   plane{y,0.0001 texture{bottom_face}}
   plane{-y,-0.9999 texture{top_face}}
   plane{x,0.0001 texture{left_face}}
   plane{-x,-0.9999 texture{right_face}}
   plane{z,0.0001 texture{front_face}}
   plane{-z,-0.9999 texture{back_face}}
}
This code has not been tested, but the following has:
difference
{
 box{0 1}
 plane{y,0.0001 texture{pigment{rgb<1,0,0>}}}
 plane{-y,-0.9999 texture{pigment{rgb<0,0,1>}}}
 plane{x,0.0001 texture{pigment{rgb<0,1,0>}}}
 plane{-x,-0.9999 texture{pigment{rgb<1,0,1>}}}
 plane{z,0.0001 texture{pigment{rgb<1,1,0>}}}
 plane{-z,-0.9999 texture{pigment{rgb<0,1,1>}}}
}
Hope this helps!
Nathan Jolly (Captain Chemistry) Post a reply to this message
 |  |