I'm writing a C# Universal Windows Application that loads a model from a .obj file and I would like to render that model so that the user can rotate it and scale it. Is there a way to render it in the app? Preferably in the same window? Something like the Map control, it's wrapped inside the app but still interactive.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I found this MSDN article for Windows 8.1 phone that tells us to use PlaneProjection.
<StackPanel.Projection>
<PlaneProjection RotationX="-35" RotationY="-35" RotationZ="15" />
</StackPanel.Projection>
DirectX may be the answer to loading the obj file. " DirectX has limited features when it comes to loading a 3D model: It is recommended to use the DirectXTK (toolkit) to handle them. The 3D model file formats that it supports are: .CMO, .SDKMESH and .VBO. It should support .OBJ too (if my memory serves me well)...." https://mva.microsoft.com/en-US/training-courses/c-directx-game-development-blending-and-models-8491?l=uG7SBIYz_8604984382