Search Unity

experimental vertex color painting lighting engine

Discussion in 'Works In Progress - Archive' started by jonlab, Sep 6, 2012.

  1. jonlab

    jonlab

    Joined:
    Apr 6, 2010
    Posts:
    182
    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
    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)
     
  2. Mander

    Mander

    Joined:
    Jul 12, 2012
    Posts:
    68
    WOW dude thats really nice. Amazing job. but isn't there something for this already in unity?.
     
  3. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    If you're talking about Beast, that doesn't bake to vertex colors, and is only available in the editor, not at runtime.

    --Eric
     
  4. jonlab

    jonlab

    Joined:
    Apr 6, 2010
    Posts:
    182
    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).
     
    Last edited: Sep 7, 2012
  5. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Really just need a bake to vert col option for beastie poos.
     
  6. jonlab

    jonlab

    Joined:
    Apr 6, 2010
    Posts:
    182
    A few experimentations with power and directivity patterns :













     
  7. gl33mer

    gl33mer

    Joined:
    May 24, 2010
    Posts:
    281
    Wow. Just stumbled onto this for the first time.

    Is this happening?
     
  8. beck

    beck

    Joined:
    Nov 23, 2010
    Posts:
    294