简体   繁体   English

在Visual Studio 2010(WPF)中导入3D模型

[英]Import 3D model in Visual Studio 2010(WPF)

I work on a project in VS2010(WPF aplication) for 3D game, i use Visual C# with OpenGL and GLControl, and i need help about importing 3D models. 我正在VS2010(WPF应用程序)中开发3D游戏项目,将Visual C#与OpenGL和GLControl结合使用,并且需要有关导入3D模型的帮助。 Google search didn't help much, i need more things to know about import 3D models in these technologies. Google搜索并没有太大帮助,我需要更多有关这些技术中导入3D模型的知识。

OpenGl is not a scene graph, and it will not load models for you. OpenGl不是场景图,它不会为您加载模型。 You need to load the model separately and then pass the vertex/normal/texture/index information to opengl using either vertex buffers/index buffers, or using the fixed function pipeline if that is the way you are going. 您需要分别加载模型,然后使用顶点缓冲区/索引缓冲区或使用固定功能管线(如果要这样做)将顶点/法线/纹理/索引信息传递给opengl。

Other than that, we can not help you since this is such a general question, and each model format is loaded differently. 除此之外,由于这是一个普遍的问题,并且每种模型格式的加载方式不同,因此我们无济于事。

Check out ZAM3D and Microsoft Expression Designer, you can easily import and export models that you can directly use in xaml 查看ZAM3D和Microsoft Expression Designer,您可以轻松导入和导出可直接在xaml中使用的模型

Regarding rotate/translate transform, there is support built into WPF and you don't need open gl if you are using WPF, I would highly recommend you to install Expression Blend and use animation/camera-control to achieve the same. 关于旋转/平移变换,WPF内置了支持,如果您使用的是WPF,则不需要open gl,我强烈建议您安装Expression Blend并使用animation / camera-control来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM