Using Paint 3D to design 3D models for your Holographic applications

In this article, you will learn, how we can make a basic 3D Model using Paint 3D app and then using it as a Holograms in your holographic application. This is a state forward process, the creativity involve in designing the 3D model . We will learn this in three different step, first design the 3D Model in Paint 3D App, import the 3D Model into Unity3D and finally publishing it as Holographic application.

If you are new into holographic app development with HoloLens, you can start looking at my series of post – Holographic App Development Using Microsoft HoloLens

Paint 3DApp for windows 10 makes creating 3D Models very easy. You can use this tool to construct a 3D model along with putting different model for a 3D scene. This tool is very easy to use and with basic skills of drawing, you can construct different 3D models very easily. Check out the following quick introductory video.

Download Patint3D App : and read more about Paint 3D App here

Create a 3D Model using Paint 3D

For this article, we will create a simple 3D tree. To start with, launch the Paint 3D App . Select the 3D Objects icon from main menu, and then select a Cone object from the side bar.

Add New Object in Paint 3D App

Once the Cone is placed, position it rightly on center. Then place one cylinder as root of the tree.

3D Tree Model in Paint 3D

Once both the objects are in placed, you can align and position them properly with the associated repositioning toolbar .

Repositioning Objects

You can take a preview of the 3D model, by selection the “ eye ” icon, “ View in 3D ” to verify if your 3D Model looks fine to take it forward.

Preview 3D Object in Paint 3D

Finally, save the 3D Model , and then export the object in FBX format .

Export to FBX File

That’s it. We are done from here.

My HoloLens Book : HoloLens Blueprints

Unity3D and Import the 3D Tree Model

In this section, we are not going discuss about details of how to create an Unity3D App, or how to run a holographic app, you may refer to my series of post on Holographic app developmenthere.

Must Read: Developing Holographic Apps with Unity 3D and Microsoft HoloLens

Let’s quickly discuss about the steps here:

  • Start a new instance of Unity and create a new project named “ 3DHologrpahicTree ” and make sure you are selecting the 3D option.
  • Under Project Explorer, right click on Assets à Import New Asset

Import Custom Package

  • Select the 3DTree.FBX model which was created from Paint 3D App.
  • Once the model is imported, drag and drop it into Scene View , and here is how it looks like.

3D Model in Unity

Note: When we import the FBX , it also imports all associated assets like materials, texture along object. You can explore the same in the project explorer window. With that, if you want to reapply any changes, like color or materials you are free to do that here as well.

Finally save the scene and named it as “ treescene

Tip : Unity 3D – How to rotate an object around and also along with a specific point ?

Making your App ready for Visual Studio and HoloLens

Setting up the Scene

The Main Camera is the point of view so you need to ensure it is always directional for your view object.

  • Select the “ Main Camera ” in Hierarchy, and in the Inspector view, Set the transformation position to zero ( X = 0, Y==0, Z=0 ) .
  • Set the clear flag to “ Solid Color ” and set the background to [ ARGB = 0,0,0,0 ]

Building the Holographic App in Unity

From the main menu, navigate to File –> Build Settings and perform the following.

  • Choose the Platform as – Windows Store
  • Click on “ Add Open Scenes ”’ and Select “treescene” Scene
  • Choose SDK to “ ’Universal 10
  • Targeted Device to “ HoloLens
  • Choose UWP Build Type to D3D
  • Select Unity C# Project Check box on.

Finally navigate , Player Settings -> Other Settings and enable Virtual Reality Supported

Building the Holographic App in Unity

Once done, click on Build button and select a folder (Create it for first time ) where you want to keep your app code. Once Selection done, Unity will start building the solution automatically and will create necessary files and Visual Studio Solution. Once Unity done with his job, you will have the code folder open in front of you with all necessary files

Run the Solution in Visual Studio

Open the solution in Visual Studio. To run the application, choose following option

  • Mode – Release
  • Platform – x86
  • HoloLens Emulator

Run the Application !! Wait for a while to start the emulator!! And You are done !!

Running Holographic Application in HoloLens Emulator

You have your holographic application running with the 3d model created in Paint3D

That’s all from here ! To summarize, In this article, we created a 3d Model using Paint 3D Application and using the 3D model as hologram in your holographic application.

Hope this helps !



责编内容来自:Abhijit's World of .NET (源链) | 更多关于

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合技术 » Using Paint 3D to design 3D models for your Holographic applications

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录