ZG SWTOR Baking Tools - SWTOR-Slicers/WikiPedia GitHub Wiki

A panel for tools that might help porting SWTOR models to other apps by baking SWTOR's complex materials to simpler, Principled BSDF shader-based ones (those are becoming a material interchange format, going from "of sorts" to an actual standard through industry initiatives).

At the moment we have not much to offer. A first step to make baking even possible at all is reverting to older SWTOR shaders that are friendlier to Blender's baking ways.



Convert to Legacy Materials.

Alt text

The SWTOR shaders from the modern version of the .gr2 Importer Add-on are quite faithful to the game's ones, but, to achieve that, they reproduce the way SWTOR calculates certain material attributes, such as specularity, which doesn't work well with Blender's baking workflow.

The older, "Legacy" versions of the shaders weren't as good, but happened to be more baking-friendly (they were based on the Principled BSDF shader or the Glossy one, which Blender favors for such tasks). So, we've included this simple converter: it converts materials in the Blender project that use any of the basic SWTOR shaders (Uber, Creature, Garment, SkinB, Eye, HairC), and also adds a texture map node (set as the Active node in the material), with a preloaded blank image, set to the resolution of the material's diffuse map. With such setup, one can just select, say, a character's objects, set the baking parameters, and launch a bake process. The resulting texture maps' names will appear with a "BAKED-" prefix in Blender's image select menus.

(This baking assist isn't much of an user-friendly solution, true. We are thinking of a more fully-featured one, but that is lots of work.)

Alt text

It should be pointed out that this conversion works for any type of SWTOR objects using those basic six shaders, not just character ones. On the other hand, there are some other SWTOR shaders that we've added rather recently, such as AnimatedUV, that aren't covered yet.

Requirements.

  • Objects with Modern .gr2 Add-on-based SWTOR materials.

  • There's no need to use the deprecated Legacy .gr2 Add-on anymore. Its shaders are included inside this Add-on as a .blend project file to automatically copy them from. You can pick that file to give them a look and tinker with them, if you want to.