Page 1 of 1

Automating Baking Workflows? Baking Material Shell?

PostPosted: Wed Dec 19, 2018 1:55 am
by SamuelAB
Hi,

Has anyone played with baking in Unity?

I have a question regarding the management of textures and materials. Let's say I have a scene with 100 objects that all have individual light maps. Technically, I would have to do this ever time I update the scene:
-Start scene with 100 objects with original materials
-Render 100 textures
-Assign 100 textures to 100 materials
-Assign 100 materials to 100 objects

At that point, all the original materials are no longer assigned, so if I try to render an update lightmap, it won't render properly.
--
There is one solution I like, Flatiron is a texture baking software for 3ds Max. Its solution is to produce a "shell" for each material. This shell protects the relationship of the original and baked material so that both can love simultaneously. Users are given a toggle to determine if the want to render with the original or baked results. Once a decision is made, it is possible to destroy the shell and keep only the baked or original part of the material.

Shell.jpg
Shell.jpg (13.04 KiB) Viewed 2182 times


Is there a similar way to apply this concept in Octane for Unity?

Re: Automating Baking Workflows? Baking Material Shell?

PostPosted: Thu Jan 24, 2019 8:06 pm
by wadams201
If you haven't already figured this out, there are two approaches that I've used.

1. Use the lightmapper integration instead of the texture workflow

2. To create a similar result as your "shell" approach, (at least as I understand it,) I set up two scenes, a "baking" scene and a "result" scene. Keep the materials you want to render applied to your objects in the baking scene, and in the result scene, replace the materials with the appropriate material with the new baked texture.

Re: Automating Baking Workflows? Baking Material Shell?

PostPosted: Sat Apr 20, 2019 2:58 pm
by SamuelAB
Hi Wadams,

I found that when using the lightmapper integration, you cannot update more than one texture at a time. Perhaps I am doing it incorrectly?

I've been using the following guides:
https://unity.otoy.com/guides/baking-lighting-textures/
https://unity.otoy.com/guides/live-ligh ... guide-new/

I do know about the possibility to have two scenes, but it is highly restrictive and doubles the amount of work for updates. I will do that as a last resort.