【问题标题】:How to Add Texture a 3D Model using Helixtoolkit WPF Application如何使用 Helixtoolkit WPF 应用程序为 3D 模型添加纹理
【发布时间】:2016-12-18 21:46:50
【问题描述】:

//我应该添加什么代码来导入图像作为我的模型的纹理 //我已经使用此代码加载了 3D 模型

 ModelVisual3D device3D = new ModelVisual3D () ;

device3D.Content = Display3d (MODEL_PATH) ; viewPort3d.Children.Add(device3D);

【问题讨论】:

    标签: wpf 3d textures


    【解决方案1】:

    其实很简单。使用MaterialHelper

    string path = @"path-to-image.png";
    Material material = MaterialHelper.CreateImageMaterial(path, 1);
    yourModel.Material = material;
    

    【讨论】:

      猜你喜欢
      • 2011-07-31
      • 1970-01-01
      • 1970-01-01
      • 2020-01-29
      • 2016-06-22
      • 2019-11-12
      • 2020-10-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多