Importing Models

From Computing and Software Wiki

Revision as of 03:48, 20 March 2008 by Chowkw (Talk)
Jump to: navigation, search

Contents

A model (.mdl) resource is created by exporting a model from the World Editor.
The model to be imported MUST be a COLLADA (*.dae) file.
There are different way to export to collada file depend on the software you use to create the model. In this tutorial, we use Audodesk Maya as an example

Importing Scene Data


Export the model to COLLADA (*.dae) file. After exported to a collada file, put it in the directory "..\C4\Import"
Image:Import1.jpg
Start C4 and select Tool and New World. Select Import Scene from World menu
Image:Import2.jpg
Import Scene dialog displays and choose the collada file that is importing. Click OK
Image:Import3.jpg
After selecting a Collada file, the imported geometry (as well as lights and materials) will appear in the World Editor. At this point, you may make any changes that you need to.
Note that during the import process, the World Editor will keep track of the materials used by the imported geometry. The texture maps are correctly assigned to each geometry, but the images themselves still need to be imported using the Importing Textures Image:Import4.jpg

Exporting to a Model

After you make the change, select World - Save as Model
Image:Import5.jpg
Export Model dialog shows up. Give the model a name and choose the location that you want to save at. Click OK
Image:Import6.jpg
Now, you can close the world and the collada file has covert to a model file

Insert Model to a world

To insert the model that you just import, open the world that you work on and from the menu, select World - Insert Model
Image:Import7.jpg
Import Model dialog display and you should see the model that you just import. Click OK
Image:Import8.jpg
In the viewports
Image:Import9.jpg
Return to RCaragogo


References
http://www.terathon.com/wiki/index.php?title=Creating_an_Entity_Model

Personal tools