This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
modelling:static [2005-09-12 21:33] Stormtrooper created |
modelling:static [2012-04-04 11:15] Carsten deleted page: contents (complicated manual steps) has been obsoleted by the Model Editor |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Importing own static models into Ca3DE is very easy and only requires a modelling program that can export into the ASE file format. | + | ====== Importing own static models ====== |
- | __**Step 1: Create your model and texture**__ | + | Importing own static models into Cafu is very easy and only requires a modelling program that can export into the ASE file format. |
+ | |||
+ | ===== Step 1: Create your model and texture ===== | ||
Ok let's start. Create your model and textures. I made a simple crate. | Ok let's start. Create your model and textures. I made a simple crate. | ||
Line 7: | Line 9: | ||
{{modelling:tutorial_model.jpg}} | {{modelling:tutorial_model.jpg}} | ||
- | __**Step 2: Create a texture shader**__ | + | ===== Step 2: Create a texture shader ===== |
- | Now you have to create your model texture shader. You have to know what a texture shader is and how to create it. There is a tutorial for this that can be found here. Although it features everything you need to know here is what my texture shader (which contains informations about my textures) looks like: | + | Now you have to create your model texture shader. You have to know what a texture shader is and how to create it. There is a tutorial for this that can be found [[textures:myfirst|here]]. Although it features everything you need to know here is what my texture shader (which contains informations about my textures) looks like: |
<code>Models/Static/tutorial-model/box <- texture path/name | <code>Models/Static/tutorial-model/box <- texture path/name | ||
Line 28: | Line 30: | ||
blue ambientLightBlue</code> | blue ambientLightBlue</code> | ||
- | __**Step 3: Prepare your model**__ | + | ===== Step 3: Prepare your model ===== |
After you have created your texture shader, you have to do the following: In order to let your texture work, you need to give the material you applied to your model your texture name/path. Like this, my material is named: | After you have created your texture shader, you have to do the following: In order to let your texture work, you need to give the material you applied to your model your texture name/path. Like this, my material is named: | ||
Line 36: | Line 38: | ||
The right material name is VERY important, if you don't apply it, the engine WONT find the texture! | The right material name is VERY important, if you don't apply it, the engine WONT find the texture! | ||
- | __**Step 4: Further notes**__ | + | ===== Step 4: Further notes ===== |
Every texture has to have it's own model part. You can't apply 2 textures to a model that features only 1 part. This also means that that you need a bigger shader file. | Every texture has to have it's own model part. You can't apply 2 textures to a model that features only 1 part. This also means that that you need a bigger shader file. | ||
Line 42: | Line 44: | ||
Here is an example archive containing an example model + textures + shader. | Here is an example archive containing an example model + textures + shader. | ||
- | **Download:** [[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=modelling%3Atut-staticmodel2parts.zip|2 Parts/Textures example files - .zip version]] | + | **Download:** {{modelling:tut-staticmodel2parts.zip|2 Parts/Textures example files (.zip file)}} |
- | + | **Download:** {{modelling:tut-staticmodel2parts.tar.gz|2 Parts/Textures example files (.zip file)}} | |
- | **Download:** [[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=modelling%3Atut-staticmodel2parts.tar.gz|2 Parts/Textures example files - .tar.gz version]] | + | |
- | __**Step 5: Exporting**__ | + | ===== Step 5: Exporting ===== |
Ok, now export your model and place it into a directory of the Models directory. Note: The path in the textures shaderhas to be right: | Ok, now export your model and place it into a directory of the Models directory. Note: The path in the textures shaderhas to be right: | ||
Line 59: | Line 60: | ||
__**Example files:**__ | __**Example files:**__ | ||
- | **Download:**[[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=modelling%3Atut-staticmodel.zip|Static model example files - .zip version]] | + | **Download:** {{modelling:tut-staticmodel.zip|Static model example files (.zip file)}} |
- | **Download:**[[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=modelling%3Atut-staticmodel.tar.gz|Static model example files - .tar.gz version]] | + | **Download:** {{modelling:tut-staticmodel.tar|Static model example files (.tar file)}} |
__**Relevant links:**__ | __**Relevant links:**__ | ||
- | Texture shader tutorial | ||
- | {{modelling:tut-staticmodel2parts.tar.gz}} | + | - [[textures:myfirst|Texture shader tutorial]] |