Hello Guest

Author Topic: tk2d Camera 2.3 not showing lighting properly  (Read 6895 times)

anguis

  • Newbie
  • *
  • Posts: 2
    • View Profile
tk2d Camera 2.3 not showing lighting properly
« on: November 20, 2013, 10:04:01 pm »
In the editor lights appear as it should, but the game window is showing only a little square of light.
That is on orthographic projection, if changed to perspective everything works properly.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #1 on: November 20, 2013, 10:38:39 pm »
Its a bug in Unity. They broke it in 4.0 (I think), fixed it in 4.2, broke it again in 4.3. I've reported it, dunno when it'll get fixed again.

anguis

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #2 on: November 20, 2013, 10:54:35 pm »
Thanks, it's sad to know that isn't a tk2d problem, you could fix it one thousand times faster than unity  :-\

Using perspective projection you recommend yours camera or a standard one?

In 2dtk camera there is a sort mode {orthographic, perspective, default }, what is that?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #3 on: November 21, 2013, 10:06:27 am »
For perspective both work fine, ours is just a thin wrapper around the unity camera. The sort mode will ensure things are sorted correctly. For sprites, you probably want orthographic sort mode.

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #4 on: October 02, 2014, 12:55:09 am »
This seems to be active again. Is there no way around it? Other than setting up another camera I mean (having perspective camera is not an option).

Thanks,
Kreso

edit (I'm using Unity 4.5.4f1 pro)
« Last Edit: October 02, 2014, 01:07:40 am by kreso22 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #5 on: October 02, 2014, 11:13:22 am »
No, they broke it again. But, the good news is they have fixed it. Dunno which version of unity it'll be in though...

kreso22

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #6 on: October 07, 2014, 11:18:52 pm »
This is turning out to be an issue for me.
Could you confirm latest version of Unity (or any version of Unity) that has it working?

Thanks a bunch,
Kreso

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d Camera 2.3 not showing lighting properly
« Reply #7 on: October 08, 2014, 10:15:16 pm »
I don't have it installed but it worked fine in 3.x, broke in 4.0. After that I think it was fixed in Unity 4.2 and broke again in 4.3.  Its fixed in a yet unreleased version, I read it in one of the release notes of a beta.