Importing Models

From Computing and Software Wiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
__TOC__
__TOC__
-
 
+
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.
+
<br>The model to be imported MUST be a COLLADA (*.dae) file.
<br>There are different way to export to collada file depend on the software you use to create the model. In this tutorial, we use [http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=7635018 Audodesk Maya] as an example
<br>There are different way to export to collada file depend on the software you use to create the model. In this tutorial, we use [http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=7635018 Audodesk Maya] as an example
==Importing Scene Data==
==Importing Scene Data==
-
<br>Export the model to COLLADA (*.dae) file. After exported to collada file, put it in the directory "..\C4\Import\dae"
+
<br>Export the model to COLLADA (*.dae) file. After exported to a collada file, put it in the directory "..\C4\Import"
-
*pic
+
<br>[[Image:Import1.jpg]]
-
Start C4 and select Tool and New World
+
<br>Start C4 and select Tool and New World. Select Import Scene from World menu
-
*pic
+
<br>[[Image:Import2.jpg]]
-
Select Import Sense from World menu and choose the model. Click OK
+
<br>Import Scene dialog displays and choose the collada file that is importing. Click OK
-
*pic
+
<br>[[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.
+
<br>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.
<br>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 [http://www.cas.mcmaster.ca/wiki/index.php/Importing_Textures Importing Textures]
<br>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 [http://www.cas.mcmaster.ca/wiki/index.php/Importing_Textures Importing Textures]
 +
[[Image:Import4.jpg]]
==Exporting to a Model==
==Exporting to a Model==
-
A model (.mdl) resource is created by exporting a model from the World Editor.  
+
After you make the change, select World - Save as Model
-
<br>After import from scene data, it is exported by choosing Save As Model from the World menu. Select the directory that would be saved into. Click OK.
+
<br>[[Image:Import5.jpg]]
-
*pic
+
<br>Export Model dialog shows up. Give the model a name and choose the location that you want to save at. Click OK
 +
<br>[[Image:Import6.jpg]]
 +
<br>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
 +
<br>[[Image:Import7.jpg]]
 +
<br>Import Model dialog display and you should see the model that you just import. Click OK
 +
<br>[[Image:Import8.jpg]]
 +
<br>In the viewports
 +
<br>[[Image:Import9.jpg]]
 +
<br>
Return to [http://www.cas.mcmaster.ca/wiki/index.php/RCaragogo RCaragogo]
Return to [http://www.cas.mcmaster.ca/wiki/index.php/RCaragogo RCaragogo]
<br>
<br>
 +
----
----
'''References'''
'''References'''
<br>http://www.terathon.com/wiki/index.php?title=Creating_an_Entity_Model
<br>http://www.terathon.com/wiki/index.php?title=Creating_an_Entity_Model

Revision as of 03:48, 20 March 2008

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