07-09-2010, 08:13 PM
I need to generate cubes via code at run time and I used the Model3DFactory to figure out how to do that. I also need to use an image as the material for each cube. I saw the BoxVisual3D and figured out how to apply an image to a brush and then to a material.
My problem is that each of the six faces of the cube has to have a different image and the material is applied to the entire cube, resulting in the same image appearing in each face of the cube.
How can I apply a different image to each face of a cube?
FYI, I need to do this at run time. I don't know beforehand how many cubes I'll need to generate, their sizes, or what images will go on each face of each cube.
My problem is that each of the six faces of the cube has to have a different image and the material is applied to the entire cube, resulting in the same image appearing in each face of the cube.
How can I apply a different image to each face of a cube?
FYI, I need to do this at run time. I don't know beforehand how many cubes I'll need to generate, their sizes, or what images will go on each face of each cube.