Custom Textures

From Pixelmon Generations Wiki
Revision as of 04:23, 20 November 2021 by Bulbasaur (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pixelmon supports the ability for custom textures to be created that can either overwrite the existing textures, with a resourcepack, or add new textures that can be given out to players, using TextureManager.

Creating a Texture

Creating a texture can be as simple as locating the texture file and editing it. However, it is highly recommended that you use Blender. Loading up a Pokemon's model into Blender and applying the texture to it makes it easier to navigate the texture file or directly paint on the model.

Using Blender

Setting up Blender

  1. Install the latest version of Blender from here.
    • Currently recommended version is 2.91.0 at the time of creation. Please make sure your version of Blender is supported by the Source Tools addon below.
  2. Download the Source Tools addon to your Blender from here.
  3. Open the Blender program.
  4. Navigate to Edit > Preferences > Add-ons > Install.
  5. Using the File Viewer, locate the file that was downloaded previously, select it, and press Install Add-on.
  6. Check that the Blender Source Tools add-on you just installed is checked in the list.
  7. Restart the Blender program.

Obtaining Models

For compression reasons, all models found within the Pixelmon Generations mod file will be in .smdx format. This version of the file is not openable by the Blender Source Tools add-on, so we must convert the file into .smd format. The following tutorial is based around a Windows system, so your use may differ. The program listed does require Java and will need Java setup in your Environment Variables.

  1. Download the latest version of the Pixelmon Model Converter (PMC) program from NickImpact's Development Discord here.
  2. Download the latest version of the Pixelmon Generations mod from the downloads page here.
  3. Create a new folder on your Desktop and drop both downloaded files into that folder.
  4. Create two new folders within the one you created on your Desktop named input and output.
  5. Open the downloaded Pixelmon Generations mod with WinRar or something similar.
  6. Navigate to assets\pixelmon\models\pokemon.
  7. Drag and Drop all models you want to be converted into the input folder.
  8. Open the Windows Search, search for "Command Prompt", and open it.
  9. Navigate to the folder you created on your Desktop that contains all downloaded files.
    • Example: cd C:\Users\example_user\Desktop\Models
  10. Run the following command in the prompt: java -jar Pixelmon-Model-Converter-1.4.0.jar generations input output
  11. Let the program run through all of the models, which will be placed into the output folder.

Opening the Models

  1. Navigate to File > Import > Source Engine.
  2. Using the File Viewer, locate the desired .smd model file that you converted earlier and click Import.
    • Example: pikachu.smd

Applying Textures

  1. Open the downloaded Pixelmon Generations mod with WinRar or something similar.
  2. Navigate to assets\pixelmon\textures\pokemon.
  3. Drag and Drop all of the texture files you want to edit into a folder.
  4. In Blender, select the model you want to apply the texture to by clicking on the model itself.
  5. In the lower right side panel, select Material Properties.
    • It looks like a sphere icon with red and black.
  6. Select the desired Material Node on the middle right side panel and then select the gray Use Node button (should turn blue).
    • Example: pm0025_00_BodyA1.tga
    • Please note that if there are multiple Material Nodes listed, you may need to repeat this step and the following steps for each node.
  7. Click the Shading view button on the top middle of the screen and ensure the model is still selected.
  8. On the new view, click anywhere in the lower dark gray grid and press Shift + A.
  9. Select Texture > Image Texture and click anywhere in the grid to drop the Image Texture box.
  10. On the newly created orange Image Texture box, click and drag the small circle next to Color over to the BaseColor circle on the green Principled BSDF box.
  11. Select the Open button on the orange Image Texture box and navigate to the texture file for that model that you obtained prior.

Modifying the Textures

Locating Textures

  1. Open the downloaded Pixelmon Generations mod with WinRar or something similar.
  2. Navigate to assets\pixelmon\textures\pokemon.
  3. Drag and Drop all of the texture files you want to edit into a folder.

Editing Textures

There are several options for editing the texture. Most popular are Photoshop and GIMP. You may also directly edit the texture in Blender, but it requires multiple steps to set up (all listed above).

  1. Open the texture file you located earlier using your desired program.
  2. Using the available tools, you can modify the texture file. Some textures may be hard to decipher what goes where, which is why Blender is helpful!
  3. Once you have finished your edits, save the image as the same name with the file type as a .png file.

Using the Textures

When it comes to using your newly created texture, you currently have two options. The first is to create a Resource Pack and overwrite the existing texture using your new one. The second option is to use the TextureManager plugin available in the Server Owners Discord, though it is only available to public server owners.

Resource Packs

  1. Create a blank resource pack. You can download a pre-made blank one here.
  2. Open the blank resource pack using WinRar or something similar and navigate to assets\pixelmon\textures\pokemon.
  3. Drag and drop your custom texture into this folder, but make sure it follows the same naming scheme as the original texture file.
    • Example: pikachu.png
  4. Place the Resource Pack into the resourcepack folder of your game files.
  5. Load up your client and enable the Resource Pack in Esc > Options... > Resource Packs....


Coming soon...