我有一个简单的框,如下所示:
BoxVisual3D box = new BoxVisual3D();
box.Width = Convert(panel.Width);
box.Length = Convert(panel.Length);
box.Height = Convert(panel.Thickness);
box.Center = new Point3D(quotaX, quotaY, quotaH);
string matType = panel.Material == SvBaseboardMaterial.MDF ? "mv-pannello-mdf.jpg" : "mv-pannello-base.jpg";
box.Material = MaterialHelper.CreateImageMaterial(new BitmapImage(new Uri(@"" + matType, UriKind.Relative)), 1, false);
viewport.Children.Add(box);
我想在盒子的每一侧应用不同的纹理。有什么提示吗?项目站点上缺少信息
答案 0 :(得分:0)
您需要在多维数据集的每一侧使用TextureCoordinates来对图像的不同部分进行采样。