我正在加载和纹理这样的模型
Model3DGroup modelGroupScull = importer.Load("C:\\Users\\х\\Desktop\\a.obj");
modelScull = (GeometryModel3D)modelGroupScull.Children[0];
BitmapImage bitImageScull = new BitmapImage();
bitImageScull.BeginInit();
bitImageScull.UriSource = new Uri("C:\\Users\\х\\Desktop\\sc.jpg");
bitImageScull.EndInit();
ImageBrush imageBrushScull = new ImageBrush();
imageBrushScull.ViewportUnits = BrushMappingMode.Absolute;
imageBrushScull.ImageSource = bitImageScull;
diffuseMatScull = new DiffuseMaterial();
diffuseMatScull.Brush = imageBrushScull;
modelScull.Material = diffuseMatScull;
Model3DGroup2.Children.Add(modelScull);
然而接缝看起来很奇怪(它们在3dMax中看起来很好),以及对象内部的纹理是蓝色的。有没有办法解决它并使对象内部纹理化?
谢谢! )