User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
textures:myfirst [2005-09-12 20:10]
Stormtrooper
textures:myfirst [2005-09-12 21:34]
Stormtrooper Fixed a form error²
Line 5: Line 5:
 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).
  
-Go into your Ca3DE directory (Ca3DE-MDK -> Projects -> Ca3D-Engine) and from there into the textures directory: Games -> DeathMatch -> Textures. There it should somehow look like this:+Go into your Ca3DE directory (Ca3DE-MDK -> Projects -> Ca3D-Engine) and from there into the textures directory: ​**Games -> DeathMatch -> Textures**. There it should somehow look like this:
  
-[[javascript:​mediaSelect('​textures:​tut1_1.jpg'​)|{{lib/​exe/​fetch.php?​w=120&​media=textures%3Atut1_1.jpg}}]]+{{textures:​tut1_1.jpg}}
  
 Now create a new directory, I call mine "​tutorial"​. Go into it and place your texture there. I call my texture "​texture1",​ it consists of a diffuse map, a normal map and a specular map. I add endings to the different textures to exactly know which texture is which type. My diffuse maps have a _diff tag in their name, normal maps get _norm, specular maps get _spec and luminance maps _lum (not necessary to give them those tags though). Now create a new directory, I call mine "​tutorial"​. Go into it and place your texture there. I call my texture "​texture1",​ it consists of a diffuse map, a normal map and a specular map. I add endings to the different textures to exactly know which texture is which type. My diffuse maps have a _diff tag in their name, normal maps get _norm, specular maps get _spec and luminance maps _lum (not necessary to give them those tags though).
Line 35: Line 35:
 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: Tutorial example files (.zip file) +**Download:** [[http://​www.ca3d-engine.de/​wiki/​lib/​exe/​fetch.php?​cache=cache&​media=textures%3Atut-textures.zip|Tutorial example files (.zip file)]] 
-Download: Tutorial example files (.tar.gz 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)]]
  
  
textures/myfirst.txt · Last modified: 2013-01-07 12:07 (external edit)