[LibGDX + box2dlights] No shadow on Box2d objects

Hello, all.

I am having some issues using libGDX’s box2dlights. For some reason box2d objects are not casting shadows from lights:

However there is a shadow being cast at the bottom left corner of the tile map, which doesn’t make sense because there is no box2d object there (according to the debug renderer):

Here is the the main code that I believe would pertain to the issue:
Renderer.java - http://pastebin.java-gaming.org/6994f743c6f
Light.java - http://pastebin.java-gaming.org/994f48c3f66
TileMap.java - http://pastebin.java-gaming.org/94f4c9f366c

Any suggestions would be greatly appreciated.

Thanks in advance,
-Nemee

You are probably using wrong scale. Box2dLights only know about scale that box2d work inside matrices that you pass to box2dLights have to be in that coordinate space.

Thank you, that was indeed the problem. I was forgetting to scale the camera’s Matrix4 being passed in.