This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
textures:myfirst [2005-09-12 20:59] Stormtrooper Fixed li ks - everything is fine now |
textures:myfirst [2006-07-30 00:38] 127.0.0.1 (old revision restored) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | This tutorial has 2 part. The first part covers textures for maps and the second part covers skins for models. | + | ====== Using own textures ====== |
- | __**Part 1: Map textures**__ | + | |
+ | This tutorial has 3 part. The first part covers textures for maps, the second part covers skins for models and the third part skybox textures. | ||
+ | |||
+ | ===== Part 1: Map textures ===== | ||
Create your texture. Then save it into one of the supported file formats (those are: .jpg, .png, .tga, .bmp). | Create your texture. Then save it into one of the supported file formats (those are: .jpg, .png, .tga, .bmp). | ||
Line 16: | Line 19: | ||
<code>Textures/directory_name(in which the textures are palced)/texture name | <code>Textures/directory_name(in which the textures are palced)/texture name | ||
{ | { | ||
- | type_of_texture Textures/directory_name/texture_patch | + | type_of_texture Textures/directory_name/texture_patch |
} | } | ||
</code> | </code> | ||
Line 25: | Line 27: | ||
Textures/tutorial/texture1 | Textures/tutorial/texture1 | ||
{ | { | ||
- | diffusemap Textures/tutorial/texture1_diff.jpg | + | diffusemap Textures/tutorial/texture1_diff.jpg |
- | normalmap Textures/tutorial/texture1_norm.jpg | + | normalmap Textures/tutorial/texture1_norm.jpg |
- | specularmap Textures/tutorial/texture1_spec.jpg | + | specularmap Textures/tutorial/texture1_spec.jpg |
- | lightmap $lightmap | + | lightmap $lightmap |
} | } | ||
</code> | </code> | ||
Line 35: | Line 37: | ||
It's easy, isn't it? And that's already it! You can save it as yourshadername.cmat or within another shader and it will work. Start your mapping editor and you will be able to use the texture! | It's easy, isn't it? And that's already it! You can save it as yourshadername.cmat or within another shader and it will work. Start your mapping editor and you will be able to use the texture! | ||
- | **Download:** [[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=textures%3Atut-textures.zip|Tutorial example files (.zip file)]] | + | **Download:** {{textures:tut-textures.zip|Tutorial example files (.zip file)}} |
- | **Download:** [[http://www.ca3d-engine.de/wiki/lib/exe/fetch.php?cache=cache&media=textures%3Atut-textures.tar.gz|Tutorial example files (.tar.gz file)]] | + | **Download:** {{textures:tut-textures.tar.gz|Tutorial example files (.tar.gz file)}} |
- | __**Part 2: Model textures**__ | + | ===== Part 2: Model textures ===== |
Using own skins (model texures) is as easy as using map textures. There are only slight differences. | Using own skins (model texures) is as easy as using map textures. There are only slight differences. | ||
Line 47: | Line 49: | ||
Models/Static/mymodelname/a_name_for_my_skin | Models/Static/mymodelname/a_name_for_my_skin | ||
{ | { | ||
- | diffusemap Models/Static/a_name_of_my_skin_diff.png | + | diffusemap Models/Static/a_name_of_my_skin_diff.png |
- | normalmap Models/Static/a_name_of_my_skin_norm.png | + | normalmap Models/Static/a_name_of_my_skin_norm.png |
- | specularmap Models/Static/a_name_of_my_skin_spec.png | + | specularmap Models/Static/a_name_of_my_skin_spec.png |
- | red ambientLightRed | + | red ambientLightRed |
- | green ambientLightGreen | + | green ambientLightGreen |
- | blue ambientLightBlue | + | blue ambientLightBlue |
} | } | ||
</code> | </code> | ||
Line 61: | Line 63: | ||
Well that's it! If there are questions, feel free to post them in the forums! | Well that's it! If there are questions, feel free to post them in the forums! | ||
+ | |||
+ | ===== Part 3: Skybox textures ====== | ||
+ | |||
+ | You can find detailed tutorial concerning the integration of new skyboxes here: | ||
+ | |||
+ | * [[textures:skydomes#how_to_integrate_a_skybox_into_ca3de|How to integrate a skybox into Ca3DE]] | ||
+ | |||
+ |