UWP render 3D model in a

2019-07-17 06:39发布

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条回答
SAY GOODBYE
2楼-- · 2019-07-17 06:50

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

查看更多
登录 后发表回答