Search Unity

  1. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  6. Unity 2017.3 beta is now available for download.
    Dismiss Notice

[RELEASED] 2D Light System

Discussion in 'Assets and Asset Store' started by lmsAlterEgo, Jan 6, 2014.

  1. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20

    Attached Files:

    Last edited: Aug 18, 2014
    Magiichan likes this.
  2. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    990
    Wow, this seems pretty cool!
    Any chance you'll support:

    - Unity Free
    - 2D Toolkit

    ?
     
  3. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    thank you!)

    Unity Free - no

    Likely to work with 2D Toolkit in the near future check)
     
    Last edited: Jan 6, 2014
  4. Perpetual-Diversion

    Perpetual-Diversion

    Joined:
    Nov 27, 2013
    Posts:
    68
    Seems like a really neat system, looks great in the previews! :)
     
  5. Frostbite23

    Frostbite23

    Joined:
    Mar 8, 2013
    Posts:
    400
    WHAT! why not ;(

    Why can't this asset support unity free? I assume it depends on a pro feature.
    but anyways looks promising!

    P.S how dose this lighting system work? I would like to know
     
  6. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Oh man, this asset looks incredible and a lot better than all the other 2d light solutions I've seen!

    2DToolkit support would be essential though. Also, will you provide the source code?
     
  7. Kelde

    Kelde

    Joined:
    Feb 28, 2012
    Posts:
    629
    oh wow, very nice stuff....Pro only huh....well, id blast off 1500 to be able to use this.
     
  8. Kelde

    Kelde

    Joined:
    Feb 28, 2012
    Posts:
    629
    how is it lighting up the outer edge of the entire environment? is it masked somehow? really adds to the fell of the game, amazing.
     
  9. TheValar

    TheValar

    Joined:
    Nov 12, 2012
    Posts:
    695
    Very cool, I like that it's not dependent on colliders. Too bad it won't support Unity Free though :(
     
  10. Kelde

    Kelde

    Joined:
    Feb 28, 2012
    Posts:
    629
    Wich is a shame for both the developer and the community as im sure most developers are on free, wich in turn would make this asset almost dodge sales.

    Make it work on free(if its supported) and this asset will do incredibly good!
     
  11. TheValar

    TheValar

    Joined:
    Nov 12, 2012
    Posts:
    695
    I assume there must be a critical limitation of Unity Free that makes it impossible :/
     
  12. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Source code has a separate cost becouse as the author technology.
    The most important image quality and performance. In the near future support for the free version will not. Unity3D free has technological limitations.
    lighting up the outer edge using the special mask. This is an optional feature :)
     
  13. Seth-McCumber

    Seth-McCumber

    Joined:
    May 26, 2013
    Posts:
    141
    Awesome! A bit laggy though
     
  14. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Will this support "cone" lights? Would be cool to implement on something like an enemy's line of sight.
     
  15. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Yes of course! There is support for spot lights ( "cone" lights )



    soon to be updated web demo!
     

    Attached Files:

    Last edited: Jan 18, 2014
  16. Kelde

    Kelde

    Joined:
    Feb 28, 2012
    Posts:
    629
    yeha thats what i thought. We are getting Pro shortly tho so will give this a whiel, it has to be the best looking 2D light asset ive seen sofar even tho a few others arent far behind. More web demos yay!
     
  17. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Any idea when is this coming to the Asset Store?
     
  18. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
  19. moure

    moure

    Joined:
    Aug 18, 2013
    Posts:
    182
    That looks and runs great!
    Well done :)
     
  20. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,338
    $Screen Shot 2014-01-26 at 11.52.26 AM.png OSX Mavericks via Safari, some kind of shader error. Totally pink background.
     
  21. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    990
    Same for me, but I'm not on Mavericks, still on 10.8.5 MacOsX in Firefox.
     
  22. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Imaginaryhuman thanks a lot! We have fixed this bug) can test
    $screenshot.png
     
    Last edited: Jan 28, 2014
  23. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,338
    I cant get either demo to download at all right now, not sure why
     
  24. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Will this work on mobile?
     
  25. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,338
  26. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,338
    I got it working now on mac but not windows safari. It looks pretty nice, runs smooth. I believe this technique uses a radial blur with a grab pass?
     
    Last edited: Feb 2, 2014
  27. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Hey lmsAlterEgo, don't abandon this! I'd love to buy it (when it's available) but would be awesome if you could answer our questions.
     
  28. JesseAlexander

    JesseAlexander

    Joined:
    Nov 22, 2009
    Posts:
    286
    Really want this - cant wait for the asset store post!
     
  29. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Hello.
    Now the system does not work on mobile =(. I did port system on a mobile phone, but he is still working with a very low FPS, if I do enough optimization is mobile support is enabled
     
  30. JesseAlexander

    JesseAlexander

    Joined:
    Nov 22, 2009
    Posts:
    286
    Would you be able to put out a beta on the PC for now? I'd love to test it out!
     
  31. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,338
    Unfortunately the method used, which I think is a radial blur with quite a lot of texture samples, is going to be slow. It looks great, it's possibly the most versatile per-pixel lighting method, but by its very nature it requires a tonne of texture reads to blur/streak the light, and on mobile every time you add one more texture lookup things get slower. Not sure how you will overcome that short of some kind of quality reduction?
     
  32. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    It remains to fix a bug and I'll post, presumably at the weekend.

    Now plugin in the phone does not work, and the port provides low FPS (10-15). I have a couple of ideas of how to optimize the algorithm
     
  33. JesseAlexander

    JesseAlexander

    Joined:
    Nov 22, 2009
    Posts:
    286
  34. Bramlet

    Bramlet

    Joined:
    Nov 8, 2013
    Posts:
    20
    looks adorable, i'd love to buy it
     
  35. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Hooray!!! The system completed yet and is awaiting moderation!
    Updated demo scenes.:)
     
  36. luispedrofonseca

    luispedrofonseca

    Joined:
    Aug 29, 2012
    Posts:
    612
    Cool! Glad to see this works on mobile now. What's the performance like?
     
  37. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Nexus 7 2013
    Demo Scroller 60 FPS
    Simultaneously 4-6 light ~30 FPS.
     
  38. cg_destro

    cg_destro

    Joined:
    Aug 13, 2013
    Posts:
    142
    Can you provide apk builds with demos for testing on android? :)
     
  39. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Demo Scroller apk > Link
     
  40. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Added demo Create A Light for android > Link
     
  41. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Added a new video!:)
     
  42. karadag

    karadag

    Joined:
    Dec 23, 2013
    Posts:
    8
    Great work. What is release date?
     
  43. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Asset is ready and pending moderation. Next week should appear in Asset Store:)
     
  44. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Added web demo 2D Platformer > Link
     
  45. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
  46. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Added web demo Magical Light > Link
    [​IMG]
     
  47. lmsAlterEgo

    lmsAlterEgo

    Joined:
    Dec 14, 2012
    Posts:
    20
    Hooray!!! RELEASED!:) > Link
     
  48. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    674
    nice 1 man
     
  49. Oijadt

    Oijadt

    Joined:
    Sep 4, 2013
    Posts:
    5
    Hi,
    It looks great! however i'm curious if it can be used to light a scene. In our game it's a must have feature. I thinking about effect like here: http://bulbboygame.com
    Maybe you can provide example with such a usage of the asset?
     
  50. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    1,063
    How about 2d toolkit support , any news on this?

    Also , can you let us know a bit more about how the system works? Like brief explanation on how the system handles lighting so we know if it can be integrated well enough into the existing system that we use.

    At the moment, all I can guess is that it must be using render texture feature and lighting is done at the shader level, but we need to know a bit more than that to be able to decide.

    Is there any doc on this?

    In order for the lighting to work properly, what is the min stuff we need to do? Such as do we need to set up our textures in certain way, or do we have to provide extra masking texture to lit up the edge etc.

    Also can we move the lighting bounding box around? In run time?