UWP 3d model loading

不羁岁月 提交于 2019-12-08 08:03:50

问题


I have searched everywhere but can not find an answer how could I load a 3d model (.obj/.fbx...) into UWP. I tried it with Helix, but it doesn't work well on the UWP yet. I would like to rotate this model after its loaded.


回答1:


You need to use <SwapChainPanel />

Here is the MSDN documentation on it

Here is a tutorial on how to use it. The tutorial is for Windows 8 but there are comments from people using this in UWP.

All of this was found (On Bing) in one search.

This was the StackOverflow question that lead me to the answer. Look at the first comment on the first answer UWP render 3D model in a




回答2:


As Anthony Russell suggested, currently, Unity will be a good choice for your requirement.

We can follow this article to build project for UWP in Unity 5.2+: WINDOWS 10 UNIVERSAL APPS IN UNITY 5.2

To rotate 3d model, we need to create script and use Transform.Rotate API

Here is a sample I created to rotate a Pokeball model:) Github link

Gif:



来源:https://stackoverflow.com/questions/38395185/uwp-3d-model-loading

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!