C# 我想在wpf应用程序中打开一个3ds图像
我已将.3ds图像转换为xaml及其类似文件:C# 我想在wpf应用程序中打开一个3ds图像,c#,wpf,xaml,C#,Wpf,Xaml,我已将.3ds图像转换为xaml及其类似文件: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <model name="boy" num_sub_meshes="1" num_materials="10" > <material name="c7d648bf_dds" index="0" opacity="1.000000" > <ambient r
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<model name="boy" num_sub_meshes="1" num_materials="10" >
<material name="c7d648bf_dds" index="0" opacity="1.000000" >
<ambient r="0.400000" g="0.400000" b="0.400000" a="1.000000" />
<diffuse r="0.100000" g="0.100000" b="0.100000" a="1.000000" />
<specular r="0.000000" g="0.000000" b="0.000000" a="1.000000" exp="10.000000" />
</material>
<material name="_5bd6bc7_dds" index="1" opacity="1.000000" >
<ambient r="0.698039" g="0.698039" b="0.698039" a="1.000000" />
<diffuse r="0.698039" g="0.698039" b="0.698039" a="1.000000" />
<specular r="1.000000" g="1.000000" b="1.000000" a="1.000000" exp="10.000000" />
</material>
</model>
我必须在哪里添加此xaml代码才能查看3d图像?这不是xaml。您必须编写代码来解析3ds文件,并以编程方式创建xaml以显示某些内容 你应该看看这篇文章,它似乎是你所追求的