Questions tagged [box2dlights]

Box2dLights is a open source framework for dynamic 2d lights and shadows for android and desktop using box2d physic geometry and raycasting.

Box2DLights is a 2D lighting framework that uses box2d for raycasting and OpenGL ES 2.0 for rendering. This library is intended to be used with libgdx.

34 questions
0
votes
1 answer

Box2d lights - lights over sprite

I wanted to ask if you can use box2d lights so you can see only objects that are in the lights area. For example i have a flashlight and only want to see game objects in the light. I managed to do something like this but the problem is that the…
Andrew
  • 1,109
  • 1
  • 15
  • 27
-1
votes
1 answer

LibGDX - shadows don't appear

I tried to implement Box2dLights in my game and it also works pretty well. But I cannot get shadows working although I read a lot of articles and watched a lot of videos but I just cannot figure out what my mistake is. Maybe you can, this would be…
Henning16
  • 38
  • 4
-1
votes
2 answers

Libgdx || Box2D Body frustum Culling?

Im currently developing a little dunguen crawler and because i only got about 200 fps on desktop i really need to fix my code :). My game uses a algorithm for creating different levels with different rooms and so on. Because rooms got walls, i loop…
genaray
  • 1,080
  • 1
  • 9
  • 30
-2
votes
2 answers

box2dlight libgdx point light not working

So I making a 2d game using the libgdx library. Recently I have been trying to incorporate a lighting system into the game using box2dlights library. However, for some reason the point light wont appear on the screen. Here is my code: private…
1 2
3