2D Toolkit Forum

2D Toolkit => Support => Topic started by: NoRyuk on August 18, 2017, 08:35:54 am

Title: PointLight is different between in Unity cam and mobileBuild (In Tile Map)
Post by: NoRyuk on August 18, 2017, 08:35:54 am
Hi, I have some troubles in Pointlight.

Q1. How to determine Exact pointLight position?
 (I mean, In tilemap, pointLight's effectiveness is different, although same transform.Z value, same intensity, same light range)
 (In picture, A and B is example.)
(http://imgur.com/tcFRIW7)

Q2. what is the exact pointlight's position in unity scene and mobile build?
(In picutre,  the positions of A,B,C and  those of m1, m2 is different)
(http://imgur.com/5iiQYmP)


here is my setting
(unity 5.5.4f1 , latest tk2d asset)
(http://imgur.com/9FZkLIf)
(http://imgur.com/0XbqaLD)

Please help me T.T
 
Title: Re: PointLight is different between in Unity cam and mobileBuild (In Tile Map)
Post by: unikronsoftware on August 19, 2017, 03:46:50 am
Q1 - all positions should have the same z value so they all look the same. Z affects attenuation.


Q2 - That looks like it's vertex lighting on mobile... check what lighting mode you're running on. I think it's in unity quality settings or build settings for the platform. It should be set to pixel and the number of lights needs to be higher.



I am travelling without a laptop at the minute, if you're still stuck reply to this and I'll get back to you in the next few days.

Title: Re: PointLight is different between in Unity cam and mobileBuild (In Tile Map)
Post by: NoRyuk on August 19, 2017, 09:24:16 am
Thanks for reply,

I solved Q2. but still I have Q1's problem.

I set same value of Zpos but their point light intensity looks different...
Title: Re: PointLight is different between in Unity cam and mobileBuild (In Tile Map)
Post by: unikronsoftware on August 20, 2017, 06:15:46 pm
I am not sure about that one - it could be one of many things. Can you send me a repro case to look at? support at unikronsoftware dot com.