2

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

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 中看起来不错),并且对象内部的纹理是蓝色的。有没有办法修复它并使物体内部也有纹理?

谢谢!)

4

0 回答 0