Import Textures

From Computing and Software Wiki

Jump to: navigation, search

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.

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




Return to SimulatorGT


References
http://www.terathon.com/wiki/index.php?title=Importing_a_Texture

Personal tools