Home Technical Talk

Creating ID Maps from ZBrush Models for Substance Painter

polycounter lvl 18
Offline / Send Message
HaloAnimator polycounter lvl 18
hey guys... haven't really been posting here in a while but I figured I would share something I learned today

I recently discovered the baking engine in Substance Painter (how did I miss this?) and was working to figure out how to get my ID maps working from my ZBrush meshes. In my pipeline, I use ZBrush>Modo>Substance Painter and needed to figure out a way to get the models into it with all of my polygroups intact. So I want to share with you how to do just that. I will be using modo, but I think this will work for other apps.



1. You need a subtool from ZBrush... here is a NICE looking tshirt... with three polygroups. You just need one for something like a shirt unless it has complex patterns. But for now, three will suffice. And use these options. Also, feel free to decimate your models if needed. Since we are just baking for IDs, polypainting is not needed.

Tshirt.jpg

And the export options... it is IMPORTANT to have Export Polygroups as Materials selected otherwise you will not be able to get all of the details.
a0qdx4ay

2. When we import it into Modo, the polygroups that were made will become materials... but it will be too damn small! (I am working with real world scale, which I STRONGLY encourage, and the FBX Exporter from Zbrush seems to bypass this. Hopefully by time I get Modo 901 this won't happen again) So we will have to fix the scale. But let's make sure the model imports the way we want.

Here are the options I am using for import... I chose Load Polygon Parts because it was cleaner to use. The model will be too small so you have to scale it up to match the scene around it. Interestingly enough the colour of the materials match the polygroups... sweeet.

Import Options:
ModoFBXImport.jpg

Result (too small though):
PolygroupMaterials.jpg

There we go... now the shirt is ready to be processed in Substance Painter (Export selected will be best. An option I use for asset creation.)
FBXExportFromModo.jpg

3. Open up Substance Painter and import the low res shirt (or any mesh in your scene). Pick a res. Now we need to bake the ID maps. Nice shirt, man.

SPShirt.jpg

Open up the bake textures options, load in your high res model and when you get to ID, select Polygroup/Submesh ID from the dropdown and choose Random for the colour generation. If you did everything correctly, you will get three colours.

ID options
IDOptions.jpg

TA DA!!!
Results.jpg

A quick take away from this... if you have a subtool with multiple pieces like a boot, you will want to decimate, if needed, and merge visible so that will create one subtool to export... and then in Polygroups, click autogroups, which will detect all of the pieces NOT connected :)


And Enjoy.

Replies

Sign In or Register to comment.