[Bf-cycles] Could OSL be used to bake lightmaps?
Brecht Van Lommel
brechtvanlommel at pandora.be
Wed Oct 30 14:22:06 CET 2013
It's not impossible but it's not a good fit. You need to add quite a
bit of higher level logic to rasterize the geometry with a UV map,
deal with margins, bake high to low poly, etc. Also in general OSL
shaders do not actually know much about the type of value that you
would bake into a lightmap. These shaders describe the behavior of
materials or lights, but leave the computation of the final shaded
results to the render engine.
On Wed, Oct 30, 2013 at 1:45 AM, Sinan Hassani <sinan.hassani at gmail.com> wrote:
> This is just a question on whether this is possible.
> If the ability of writing to file (or writing to texture) is added to
> OSL, this will enable developers and scripters to create their own OSL
> scripts to bake lightmaps. For certain things, you can of course still
> use BI (like baking normal maps), but for other things like AO, there is
> like 3-4 different methods for baking. So this would give a new powerful
> way to bake lightmaps and the baking would make use of Cycles.
> Is such functionality possible with OSL? If not, is it easy to implement?
> Bf-cycles mailing list
> Bf-cycles at blender.org
More information about the Bf-cycles