Bake light to mesh

Hi there.
as a game developer, one of the most demanded things is the optimization,
and two of the heaviest things are lighting and texture memory.
so one solution has come to my mind, to bake the light not into a texture but into a mesh.

if I were to use unity and c# for that I would cast a couple of rays around from the light origin and put vertices where they hit something then connect them and make my mesh, after that we can use a gradient texture to simulate lighting but the issue is that I don't know how to write the same thing in 3ds Max scripting language.

is it even possible in max? do you think there is any method better? and can someone please do that?

thanks in advance <3

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

you can use Assign Color Vertex utility for that purpose

click to open in new tab

Mehrdad995's picture

not optimized yet

Thanks dude, but that requires so many poly counts which is another issue,
I ended up using a decal system from here http://www.scriptspot.com/3ds-max/scripts/decal-projector

“A man's measure is his will. |Ali ibn Abi Talib (601 AD)|”

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.