Tutorial: Create your own models: Difference between revisions
mNo edit summary |
added links, rewrote some parts due to better understanding |
||
| Line 1: | Line 1: | ||
{{Sitenav|Moddeling| Tutorial: Create your own models}} | {{Sitenav|Moddeling| Tutorial: Create your own models}} | ||
{{Note| This tutorial isn't complete yet and can contain errors. Use at your own risk!}} | |||
== Programms / files you'll need == | |||
1. You need at least one '''textured''' model in the SMD format. [http://developer.valvesoftware.com/wiki/Exporting_a_model Valve developer tutorial - How to export models] | |||
2. Your textures with a power of 2 saved as VTF. | |||
3. A [http://developer.valvesoftware.com/wiki/Qc '''QC'''] file, can be created with any texteditor like notepad. | |||
4. studiomdl.exe , install source SDK to get this file. | |||
== How to create your own models for Empires == | == How to create your own models for Empires == | ||
=== Setup === | |||
Set up a folder to place your projectfiles and materials. I used [http://developer.valvesoftware.com/wiki/VTFEdit VTFEdit] and converted the .VTF 's to TGA 's, because your model editor may don't know the VTF format. Make sure you used the same filenames (except the ending, like .TGA ). To compile the model you'll need the VTF's ! | |||
=== | === Create your model === | ||
You can use any modeleditors like | You can use any modeleditors like | ||
* 3D Studio Max | * 3D Studio Max (Shareware) | ||
* XSI | * [http://www.softimage.com/products/modtool/ XSI] (Freeware) | ||
* Milkshape | * [http://www.milkshape3d.com/ Milkshape] (Shareware) | ||
* Misfit Model 3D | * [http://www.misfitcode.com/misfitmodel3d/ Misfit Model 3D] (Freeware) | ||
* [http://www.blender.org/ Blender] (Freeware) | |||
but you need to convert your model to a smd file at the end. | but you need to convert your model to a smd file at the end. | ||
Texture your model and save it as smd-file. | Texture your model and save it as smd-file. | ||
=== | [http://developer.valvesoftware.com/wiki/Model_Creation_Overview Valve developer tutorial - Modelcreation] | ||
[http://developer.valvesoftware.com/wiki/Exporting_a_model Valve developer tutorial - How to export models] | |||
=== Prepare for compiling === | |||
| Line 28: | Line 41: | ||
| width="250px" | [[Image:studimdltut1A.JPG|left|thumb]] || | | width="250px" | [[Image:studimdltut1A.JPG|left|thumb]] || | ||
{| | {| | ||
| colspan="2" | | | colspan="2" | Find studiomdl.exe, by using filesearch or have a look at <path to steam>''\Steam\steamapps\''<your steamname>''\sourcesdk\bin\ep1\bin''. | ||
|- | |||
|{{Note| <your steamname> ist your Steam loginname. (ex: bob123 , ''\Steam\steamapps\bob123\sourcesdk\bin\ep1\bin'') }} | |||
|- | |||
|{{Note| <path to steam> is the path to your Steamfolder (ex: ''C:\Program Files (x86)\'' ) }} | |||
|- | |||
|Create a shortcut to studiomdl.exe. | |||
|} | |} | ||
|} | |} | ||
{| | {| | ||
| Line 62: | Line 80: | ||
| width="250px" | [[Image:studimdltut3.JPG|left|thumb]] || | | width="250px" | [[Image:studimdltut3.JPG|left|thumb]] || | ||
{| | {| | ||
| colspan="2" | | | colspan="2" | Now copy your smd file (my is named nf_radar.smd ) to this folder ''\Steam\steamapps\SourceMods'' ,right next to the Empires-directory. | ||
|- | |||
|The next step explains how to create a new file in the same folder named Empires.qc. | |||
|- | |- | ||
| The Empires.qc file tells studiomdl how to handle your model. Use for example notepad to create this file. Copy | | The Empires.qc file tells studiomdl how to handle your model. Use for example notepad to create this file. Open notepad and Copy&paste the example below, modify it, select Save As... *.* and save it as Empires.qc (make sure its not Empires.qc.txt !) | ||
|} | |} | ||
|} | |} | ||
| Line 95: | Line 115: | ||
''$collisionmodel'' smd file with a collisionmodel | ''$collisionmodel'' smd file with a collisionmodel | ||
[http://developer.valvesoftware.com/wiki/Category:QC_Commands List of all QC-Commands] | |||
=== Compile your model === | |||
Execute your created shortcut to studiomdl. studiomdl will read the Empires.qc and compile your smdfile to mdl format and place it in the specified folder. To see the output of studiomdl.exe open the commandshell and drag&drop the shotcut to it. | |||
== Links == | |||
http://developer.valvesoftware.com/wiki/Compiling_Models_Basics | |||
Revision as of 01:26, 3 May 2009
Home > Tutorial: Create your own models
Programms / files you'll need
1. You need at least one textured model in the SMD format. Valve developer tutorial - How to export models
2. Your textures with a power of 2 saved as VTF.
3. A QC file, can be created with any texteditor like notepad.
4. studiomdl.exe , install source SDK to get this file.
How to create your own models for Empires
Setup
Set up a folder to place your projectfiles and materials. I used VTFEdit and converted the .VTF 's to TGA 's, because your model editor may don't know the VTF format. Make sure you used the same filenames (except the ending, like .TGA ). To compile the model you'll need the VTF's !
Create your model
You can use any modeleditors like
- 3D Studio Max (Shareware)
- XSI (Freeware)
- Milkshape (Shareware)
- Misfit Model 3D (Freeware)
- Blender (Freeware)
but you need to convert your model to a smd file at the end.
Texture your model and save it as smd-file.
Valve developer tutorial - Modelcreation
Valve developer tutorial - How to export models
Prepare for compiling
| ||||||
| |||
| |||||
example content of Empires.qc
$modelname nf\buildings\radar\nf_radar.mdl
$cdmaterials nf\buildings
$staticprop
$scale 10.0
$body studio "nf_radar.smd"
$sequence idle "nf_radar.smd" fps 30
$collisionmodel "nf_radar.smd" {
$Mass 20
}
explanation of Empires.qc
$modelname is the path and name of your model as mdl. The model nf_radar.mdl will be placed in \Steam\steamapps\SourceMods\Empires\nf\buildings\radar\nf_radar.mdl after compiling.
$cdmaterials is the path to your materials (VTF 's). Here it's \Steam\steamapps\SourceMods\Empires\nf\buildings.
$scale Scales your model by this factor.
$body main-smd
$sequence smd with animation
$collisionmodel smd file with a collisionmodel
Compile your model
Execute your created shortcut to studiomdl. studiomdl will read the Empires.qc and compile your smdfile to mdl format and place it in the specified folder. To see the output of studiomdl.exe open the commandshell and drag&drop the shotcut to it.
Links
http://developer.valvesoftware.com/wiki/Compiling_Models_Basics