Skip to content

GammaMetroid/SkywindBlenderToolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skywind Blender Toolkit

This addon is a collection of scripts to assist with modeling for Skywind. Currently it contains these functions:

  • Create Collision Mesh
  • Create LOD Meshes
  • Sync Object/Mesh Names
  • Split Assigning Names
  • Copy Vertex Color Channel
  • Bend Normals
  • Merge Vertices and Weight Normals
  • Mirror Object Keeping Custom Normals

Create Collision Mesh

Hotkey: Ctrl+Alt+C

Usage instructions: In object mode, select all the objects you want to be part of your collision mesh. Then press ctrl+alt+C. This will merge and decimate the objects, and place them in a hierarchy ready for export via ck-cmd. The name of the material will be the collision material. If your collision mesh needs to have multiple materials, simply create and assign faces to them as needed.

ckcmdexample.png
Example hierarchy for ck-cmd export

There are a few settings you can use to tweak the result.

  • Decimation Ratio is self explanatory
  • Weld Vertices will attempt to close holes. Some holes may remain
  • Weld Distance is the distance between vertices to be welded, if the option is enabled
  • Expand Distance is optional, and will scale the mesh faces along their normals, giving a sort of “buffer” around your object.

Create LOD Mesh

Hotkey: Ctrl+Alt+L

Usage Instructions: Select all the objects you want to be part of your LOD model, then press ctrl+alt+L. This will create an LOD model with an adjustable decimation ratio. Object names are retained to facilitate automatic texture set application with DynDOLOD.

A shrink value is provided as well to alleviate z fighting if desired.

NOTE: If your model uses tileable textures and you want it to be atlased, you still need to make sure all UVs are in the (0..1) range. That is, no vertices should have UV values less than 0 or greater than 1. This will likely require adjusting UVs.

Sync Object/Mesh Names

Hotkey: Ctrl+Alt+N

Usage Instructions: Select all the objects you want to have sync names for, then press the hotkey, and all data blocks will be renamed to match their parent objects.

Split Assigning Names

Hotkey: Ctrl+Alt+X

Usage Instructions: This is useful for keeping mesh names the same when importing and exporting with ck-cmd (important for not breaking texture sets). Select the object you want to split by material. Press the hotkey, and the object will be split, assigning the name of the material minus the '_material' suffix to the mesh data of each split object.

Copy Vertex Color Channel

Hotkey: Ctrl+Alt+V

Usage Instructions: Select the object you want to copy color values within and press the hotkey. Choose which channel to use as source and destination. Can copy between channels of the same color attribute, or between color attributes on different objects. Cannot run on different color attributes on the same object.

Bend Normals

Hotkey: Ctrl+Alt+S

Usage Instructions: In edit mode, select the faces you want to have bent normals and press the hotkey. Useful for foliage.

Merge Vertices and Weight Normals

Hotkey: Ctrl+Alt+M

Usage Instructions: In object mode, select an object, and press the hotkey. It will have overlapping vertices welded and a weighted normals modifier applied. There are a few options to change properties of the modifier.

Mirror Object Keeping Custom Normals

Hotkey: Ctrl+Alt+K

Usage Instructions: Trying to mirror an object, either by using the mirror modifier and applying, or by scaling the mesh by a negative number, will always destroy any custom normal data. This function provides a way to mirror an object while keeping custom normals intact. To use it, select the object or objects and press the hotkey. You can choose which axis to mirror across.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages