Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Creating a part icon: Difference between revisions

From Kerbal Space Program 2 Modding Wiki
Spacewarp>Polo
Formatted page
 
Spacewarp>Polo
Added category
Line 21: Line 21:
# Make the file addressable. The name of the addressable must be <part name>_icon.png.
# Make the file addressable. The name of the addressable must be <part name>_icon.png.
# Select the picture in Unity. In the Inspector window, set the value “Sprite” to the “Texture Type” field. Click on “Apply”.
# Select the picture in Unity. In the Inspector window, set the value “Sprite” to the “Texture Type” field. Click on “Apply”.
[[Category:Creating parts]]

Revision as of 15:14, 28 October 2023

In Blender

  1. Download the KSP2_IconGenerator.blend file from this location: https://github.com/KSP2Community/CommunityPartsPack/tree/main/Parts.
  2. Copy then open the KSP2_IconGenerator.blend file.
  3. Click File > Import > FBX and import the part.
  4. In “Scene Collection” on the right, drag and drop the “KSP2 Paintable material” (present in “ADD YOUR MODEL HERE!”) onto the model.
  5. In the shader editor, import the part textures.
    1. Diffuse = Albedo
    2. Set the “Color Space” field to “Non-Color” for Metallic, Normal, and Ambient Occlusion
    3. If no occlusion, set the “Occlusion Strength” value to 0.
  6. Select the camera (press 0 to preview the rendering)
  7. Resize and move the model if necessary.
  8. Remove the “ADD MODEL HERE!” item.
  9. Press F12.
  10. Save the image (Alt + S) as <part name>_icon.png.

In Unity

  1. Open the mod's Unity project.
  2. Move the file to the Asset folder in Unity.
  3. Make the file addressable. The name of the addressable must be <part name>_icon.png.
  4. Select the picture in Unity. In the Inspector window, set the value “Sprite” to the “Texture Type” field. Click on “Apply”.