Hello Guest

Author Topic: [Question] - Volumetric 2D Lights  (Read 5239 times)

Roamer

  • Newbie
  • *
  • Posts: 10
    • View Profile
[Question] - Volumetric 2D Lights
« on: December 17, 2013, 09:27:59 pm »
I bought the Volumetric 2D Light asset (http://u3d.as/content/reverie-interactive/2d-volumetric-lights/36x) and (most likely foolishly) expected it to work in conjunction with ToolKit 2D.

It actually requires a sprite renderer on a GameObject, so my guess is that there is probably no way to make it work with ToolKit 2D sprites.

-> So my question is, is there a way to make them work together?

-> If there isn't, would a mesh based lighting system like 2D Mesh Based Volumetric Lights (http://forum.unity3d.com/threads/142532-2D-Mesh-Based-Volumetric-Lights) work with ToolKit 2D?

On another note, loving the functionality ToolKit 2D offers (even though I'm still too inexperienced to use it to it's full extent)!

Any input is appreciated!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: [Question] - Volumetric 2D Lights
« Reply #1 on: December 17, 2013, 09:34:58 pm »
That probably isn't going to work out of the box. I suppose it could be modified to work, but I wouldn't know where to suggest looking as I've not looked at the asset. I think there was another 2d volumetric light system which did work with tk2d sprites, but again, I'm not sure. I think it might be the other one you linked - it seems to use colliders to work out occlusion, so it should work, but I recommend checking with the author of the plugin to be sure.

Roamer

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Question] - Volumetric 2D Lights
« Reply #2 on: December 17, 2013, 09:46:26 pm »
Thanks for the quick response! Great to see such great support :)

I'll take your advice and contact the author or look for other workarounds.

Edit: Incase anyone has the same question (This refers to http://forum.unity3d.com/threads/142532-2D-Mesh-Based-Volumetric-Lights):



Guess I should've researched more, 15$ down the drain :/
« Last Edit: December 17, 2013, 09:50:36 pm by Roamer »

Roamer

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Question] - Volumetric 2D Lights
« Reply #3 on: December 17, 2013, 09:56:32 pm »
I take back what I said, both of those refer to the same Asset.

It seems the updated version uses Unity sprites which basically makes it obsolete for TK2D. Guess I'll ask the author for workarounds.

Edit: The above mentioned asset actually DOES work with ToolKit 2D, I was just being extremely stupid. Simply attach a collider to your GameObject and it will work, just don't add the SpriteEvent_VLS script to your TK2D sprite, as that's what requires the Sprite Renderer Component. *facepalm*
« Last Edit: December 17, 2013, 10:11:30 pm by Roamer »