简体   繁体   中英

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. Google search didn't help much, i need more things to know about import 3D models in these technologies.

OpenGl is not a scene graph, and it will not load models for you. 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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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