WPF,obj模型上的纹理接缝不良

时间:2013-09-15 13:48:56

标签: wpf

我正在加载和纹理这样的模型

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);

enter image description here

然而接缝看起来很奇怪(它们在3dMax中看起来很好),以及对象内部的纹理是蓝色的。有没有办法解决它并使对象内部纹理化?

谢谢! )

0 个答案:

没有答案