Difference between revisions of "Tutorials/Beginners/Simple cube/2. How to create & export simple cube model"

From SCS Modding Wiki
Jump to navigation Jump to search
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{TutorialNavigation|previous=1._How_to_prepare_tools_for_mod_creation|next=3._How_to_configure_cube_as_map_asset_model}}
 
 
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
Line 20: Line 18:
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''5'''
 
| '''5'''
| [https://youtube.com/watch?v=U5sBvBTiWt0&t=79s Watch on youtube]
+
| {{#evt:
 +
service=youtube
 +
|id=https://youtu.be/U5sBvBTiWt0
 +
|dimensions=712
 +
|urlargs=start=79&end=117&theme=light
 +
}}
 
| Prepare simple cube 3D model. You can check the video on the left for instructions how to do it.
 
| Prepare simple cube 3D model. You can check the video on the left for instructions how to do it.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
Line 36: Line 39:
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''9'''
 
| '''9'''
| [[File:Simple_cube_browser_for_the_texture.jpg]]
+
| IMG
| Browse for the texture you created and select it.
+
| Set the texture for texture placed inside '''01_simple_cube/base/model/simple_cube''' folder.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''10'''
 
| '''10'''
| [[File:Simple_cube_create_uvmap.jpg]]
+
| IMG
 
| There are no UV maps defined for your mesh so the texture is not looking so good. Create new one.
 
| There are no UV maps defined for your mesh so the texture is not looking so good. Create new one.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''11'''
 
| '''11'''
| [[File:Simple_cube_apply_uvmap.jpg]]
+
| IMG
 
| Go back to the materials. Set your newly created map in the '''Mapping''' field.
 
| Go back to the materials. Set your newly created map in the '''Mapping''' field.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''12'''
 
| '''12'''
| [[File:Simple_cube_set_export_path.jpg]]
+
| IMG
 
| Setup the model export path.
 
| Setup the model export path.
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''13'''
 
| '''13'''
| [[File:Simple_cube_create_root.jpg]]
+
| IMG
| Create the root object.
+
| Create root object and call it '''simple_cube'''.
  
 
+
The root object name defines name of the exported file. So If you call the root object '''simple_cube''' exported files will be also called '''simple_cube.extension'''.
{{Tip|Make sure the 3D cursor position is X: 0, Y: 0, Z: 0}}
 
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''14'''
 
| '''14'''
| [[File:Simple_cube_call_root.jpg]]
+
| IMG
|Call the root object '''simple_cube'''.
+
| If you went through all those points simply export the model again.
 
 
The root object name defines name of the exported file. So If you call the root object '''simple_cube''' exported files will be also called '''simple_cube.extension'''.
 
 
|- style="vertical-align: top"
 
|- style="vertical-align: top"
 
| '''15'''
 
| '''15'''
| [[File:Simple_cube_party_hard.jpg]]
+
| IMG
| If you went through all those points simply export the model again.
 
|- style="vertical-align: top"
 
| '''16'''
 
| [[File:Simple_cube_export_success.jpg]]
 
 
| If everything went ok you should have now PIT and PIM files in the '''01_simple_cube/base/model/simple_cube''' folder.
 
| If everything went ok you should have now PIT and PIM files in the '''01_simple_cube/base/model/simple_cube''' folder.
 
|}
 
|}
 
{{TutorialNavigation|previous=1._How_to_prepare_tools_for_mod_creation|next=3._How_to_configure_cube_as_map_asset_model}}
 
 
=See also=
 
 
*[[Tutorials/Beginners/Simple_cube#2. How to create & export simple cube model|Tutorial overview]]
 
*[https://www.youtube.com/watch?v=U5sBvBTiWt0 Video version of tutorial]
 

Revision as of 15:52, 23 February 2016

1 Simple cube create folder 01simplecube.jpg Create folder called 01_simple_cube.
2 Simple cube create folder base.jpg Inside 01_simple_cube create folder called base which will be the root folder of your mod data.
3 Simple cube create folder model cube.jpg Inside 01_simple_cube/base create folder called model (1) and then inside it create folder called simple_cube (2).
4 Simple cube create texture.jpg Create texture using your favorite image editor and save it as .tga file inside the 01_simple_cube/base/model/simple_cube folder.
5
Prepare simple cube 3D model. You can check the video on the left for instructions how to do it.
6 Simple cube create mat and select sdr.jpg Create new material and call it simple_box (1). Next, use dif.spec (2) shader for it.
7 Simple cube generate vcol.jpg Automatically generate vertex colors.
8 Simple cube setup project base path.jpg Setup project base path to 01_simple_cube/base.
9 IMG Set the texture for texture placed inside 01_simple_cube/base/model/simple_cube folder.
10 IMG There are no UV maps defined for your mesh so the texture is not looking so good. Create new one.
11 IMG Go back to the materials. Set your newly created map in the Mapping field.
12 IMG Setup the model export path.
13 IMG Create root object and call it simple_cube.

The root object name defines name of the exported file. So If you call the root object simple_cube exported files will be also called simple_cube.extension.

14 IMG If you went through all those points simply export the model again.
15 IMG If everything went ok you should have now PIT and PIM files in the 01_simple_cube/base/model/simple_cube folder.