So you have successfully captured some 3D models using the TRNIO application and you are wondering "How can I use these in my game"? In this post I will demonstrate how you can easily import your model into the Unity visual editor after downloading it and making a few edits using Meshlab.
1. Download your model from TRNIO
Open the TRNIO application on your iPhone or iPad. From the main gallery or your project page, click on a preview model to enter a model view. Once in the model view, press the dot icon at the upper right-hand corner of the screen. A download option will appear. Press Download.
An email prompt appears. Enter an email address in the To: field and press send in order to email the link to yourself. Open the email and use the download link on the computing device where you will use Meshlab to make a few edits.
2. Download and install Meshlab
a. Meshlab is a freely available application for editing 3D meshes. Download and install meshlab.
b. Create a new folder to keep your downloaded models organized. Copy the zip file into this folder and unzip it. If you do not have an application which can unzip files, you might consider installing pzip. http://peazip.sourceforge.net/
3. Remove unwanted parts of the model
a. Often your model may contain reconstructed mesh fragments from areas that are adjacent to your model. You can use Meshlab to remove these unwanted mesh fragments. If there are many fragments, you might select the model instead of the fragments and then invert the selection.
4. Simplify the model mesh to support higher FPS ( frames per second )
At this point, you could import a larger size mesh into Unity, but you probably want to simplify the mesh in order to enable more frames per second in your game. Higher FPS makes the animation appear smoother and not jerky. This is especially true for games that run on a mobile device. We will use Filter -> Remeshing simplification and Reconstruction -> Quadratic Edge Collapse Decimation to simplify the model and reduce the number of polygons.
5. Smooth the simplified mesh ( optional )
You might optionally apply a Taubin smoothing filter to the reduced model. Use Filters --> Smoothing, Fairing and Deformation --> Taubin Smooth. Our experience is the default settings provide good results.
6. Re wrapping textures on to a modified 3D model
One issue with simplifying a mesh for gaming is that textures become distorted. TRNIO is currently working on automation which will allow users to rewrap hi-resolution textures over simplified meshes. Expected release date is August, 2014.
7. Comparison of models
The first model below is the original scan taken with the Trnio app. The model afterwards is modified with (1) simplification, (2) extraneous part removal, (3) smoothing, (4) retexturing and is (5) water-tight.
8. Converting the model to an FBX format
There are a number of ways to import 3D assets into Unity. We favor the FBX format. Here are a couple of links that demonstrate converting a model into the FBX format:
9. Load the FBX model into the Unity Visual Editor.
Sign up for an account at Unity. Then, download and install the visual editor for Windows or Mac OS X using the link provided below.
After installing the Unity visual editor, watch this video tutorial to learn how to import a FBX model, set it's scale, and add a collider to the model. You want all of your models to have a consistent scale so that models are proportional to each other. You need the collider so that game players are not able to walk through your 3d model. Helpful links are:
To learn more about Unity and the Unity visual editor, watch the tutorials and read documentation here: