jonlab
September 6, 2012, 4:21pm
1
Hi,
As an answer to a project’s need in the Commercial Work section, I started an experimental lighting engine in Unity.
The original thread : http://forum.unity3d.com/threads/149110-IES-photometric-file-support
I worked a few on some sort of Vertex Color lighting engine to demonstrate the idea and as a proof of concept.
Lighting is painted in vertex. Not as precise as texture based lightmapping, but with well tesselated models, that looks good. And no real light in scene… only unlit vertex color lighting.
And painting is made at runtime (but this could me made in Editor as well with an editor script).
The work is still in progress :
Here’s a web player demo to play with :
www.tanant.info/demo/VertexLightDemo3.html
(as a quick start, clic on “L Grid on wall” and “Bake” . You can orbit cam with mouse drag and select lights to edit parameters)
Mander
September 6, 2012, 7:46pm
2
WOW dude thats really nice. Amazing job. but isn’t there something for this already in unity?.
Eric5h5
September 6, 2012, 9:51pm
3
If you’re talking about Beast, that doesn’t bake to vertex colors, and is only available in the editor, not at runtime.
–Eric
jonlab
September 7, 2012, 6:17am
4
Yes, absolutely !
Beast is amazing but rendering is very cpu-intensive and takes a long time. And lightmaps textures memory footprint is sometimes also a problem.
Vertex color painting could be a very much cheaper alternative when lighting has to change at runtime (rendering takes only a few seconds depending on lights count) and on a mobile platform (light count is virtually unlimited).
Really just need a bake to vert col option for beastie poos.
jonlab
September 8, 2012, 7:36am
6
A few experimentations with power and directivity patterns :
gl33mer
December 30, 2012, 9:21am
7
Wow. Just stumbled onto this for the first time.
Is this happening?
beck
July 30, 2013, 9:30pm
8
We just released a vertex painter that has this feature. It can import beast lightmaps into vertex colors, and can be swapped or modified during runtime. Here’s the thread: http://forum.unity3d.com/threads/192711-VPaint-Advanced-Vertex-Painting-Released .