Author Topic: SBSbaker udim support for ranges  (Read 29243 times)

hi, is there support for baking udim ranges using the sbs baker command line tool?
eg. --udim 1001 1002 1003 ...

if not what is the best work-around with minimum time loss?

There isn't one yet, unfortunately.
You'd have to write a script that launches multiple sbsbaker subprocesses in parallel, for each UDIM + baker.

e.g.
sbsbaker 1001 ambient-occlusion-from-mesh
sbsbaker 1001 position
sbsbaker 1001 curvature-from-mesh
sbsbaker 1002 ambient-occlusion-from-mesh
sbsbaker 1002 position
sbsbaker 1002 curvature-from-mesh
...

Doing so, you'll discover another major issue; the geometry caching will be done for each subprocess independently, which significantly increases the overhead involved during baking. This will cause your SAT bakers to take exponentially longer than baking in Designer (10 min vs 2.5 hours with some heavier assets I've tested).

Unfortunately this issue goes back a couple of years and there's still no solution for it:
https://forum.substance3d.com/index.php/topic,20946.msg92505/highlight,sbsbaker+caching.html#msg92505
https://forum.substance3d.com/index.php/topic,28828.msg111998/highlight,sbsbaker.html#msg111998
Last Edit: July 31, 2019, 03:23:16 pm

Thanks for the info. I've implemented in parallel like you said. Unfortunate this is not supported.