2D Toolkit Forum

2D Toolkit => Support => Topic started by: anguis on November 20, 2013, 10:04:01 pm

Title: tk2d Camera 2.3 not showing lighting properly
Post by: anguis 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.
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: unikronsoftware 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.
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: anguis 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?
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: unikronsoftware 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.
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: kreso22 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)
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: unikronsoftware 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...
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: kreso22 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
Title: Re: tk2d Camera 2.3 not showing lighting properly
Post by: unikronsoftware 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.