Importing Textures
From Computing and Software Wiki
(New page: '''IMPORTANT''' <br>THE IMPORTING TEXTURE MUST BE IN [http://filext.com/file-extension/TGA TGA] FORMAT <br>HEIGHT AND WIDTH OF THE TEXTURE MUST BE POWER OF 2 (example: 2, 4, 8, 32, 64, 12...) |
|||
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | ''' | + | ==Getting Started== |
- | + | At times you may find that the textures provided are not what you need or possibly too limited for your tastes. In this case the C4 Game Engine allows you to import your own personal '''*.tga''' files to use as textures for objects. Many programs such as Adobe Photoshop support this file format and can be used to create Targa files. Texture maps used by the C4 Engine have the .tex file extension. For more information about texture format, please go [http://www.terathon.com/wiki/index.php?title=Importing_a_Texture Importing a Texture]. The most important thing you need to know for importing *.tga files is that they must be of length and width that is of a '''power of 2'''. (For Example: 32, 64, 128, 256, 512, 1024...) If the length or width is not correct, you will receive an error message through the console saying that the import failed. | |
- | + | ||
+ | ==Importing a Targa File (*.tga)== | ||
+ | |||
+ | Make sure that your *.tga file is placed somewhere in the '''Import''' folder before you begin. Start C4 and select '''Tools > Import Texture''' from the engine menu. The Import Texture window is displayed. Select the texture you want to import and click OK. A window is displayed that has import options. The default options are usually appropriate for importing a simple texture. | ||
+ | |||
+ | [[Image:imptex1.jpg]] | ||
+ | |||
+ | Then click OK. In the console you should see something like the following indicating success '''Imported Texture: *.tga'''. The texture imports into '''..\C4\Data\tex'''. If you did not see that make sure to check your height and width size of the texture to ensure they are powers of two. You may now use your imported texture in the world editor to apply to objects. | ||
+ | |||
+ | [[Image:imptex2.jpg]] | ||
- | |||
- | |||
<br> | <br> | ||
- | + | <br> | |
- | + | <br>Return to [http://www.cas.mcmaster.ca/wiki/index.php/RCaragogo RCaragogo] | |
- | + | ---- | |
- | + | '''References''' | |
- | + | <br>http://www.terathon.com/wiki/index.php?title=Importing_a_Texture | |
- | + | ||
- | + | ||
- | + | ||
- | + |
Current revision as of 02:15, 20 March 2008
Getting Started
At times you may find that the textures provided are not what you need or possibly too limited for your tastes. In this case the C4 Game Engine allows you to import your own personal *.tga files to use as textures for objects. Many programs such as Adobe Photoshop support this file format and can be used to create Targa files. Texture maps used by the C4 Engine have the .tex file extension. For more information about texture format, please go Importing a Texture. The most important thing you need to know for importing *.tga files is that they must be of length and width that is of a power of 2. (For Example: 32, 64, 128, 256, 512, 1024...) If the length or width is not correct, you will receive an error message through the console saying that the import failed.
Importing a Targa File (*.tga)
Make sure that your *.tga file is placed somewhere in the Import folder before you begin. Start C4 and select Tools > Import Texture from the engine menu. The Import Texture window is displayed. Select the texture you want to import and click OK. A window is displayed that has import options. The default options are usually appropriate for importing a simple texture.
Then click OK. In the console you should see something like the following indicating success Imported Texture: *.tga. The texture imports into ..\C4\Data\tex. If you did not see that make sure to check your height and width size of the texture to ensure they are powers of two. You may now use your imported texture in the world editor to apply to objects.
Return to RCaragogo
References
http://www.terathon.com/wiki/index.php?title=Importing_a_Texture