• Stars
    star
    251
  • Rank 161,862 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 10 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fork of box2dlights by Kalle Hamalainen

Box2DLights

screenshot

Kalle Hameleinen's 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.

Try Kalle's game Boxtrix to see the library in action.

Features

  • Arbitrary number of lights
  • Gaussian blurred light maps
  • Point light
  • Cone Light
  • Directional Light
  • Chain Light [New in 1.3]
  • Shadows
  • Dynamic/static/xray light
  • Culling
  • Colored ambient light
  • Gamma corrected colors
  • Handler class to do all the work
  • Query method for testing is point inside of light/shadow

This library offer easy way to add soft dynamic 2d lights to your physic based game. Rendering use libgdx but it would be easy to port this to other frameworks or pure openGl too.

Usage

Box2DLights is also available in Maven Central. Add the following dependency to your libgdx core project:

<dependency>
  <groupId>com.badlogicgames.box2dlights</groupId>
  <artifactId>box2dlights</artifactId>
  <version>1.4</version>
</dependency>

If you use Gradle, add the following dependency to your build.gradle file, in the dependencies block of the core project:

 compile "com.badlogicgames.box2dlights:box2dlights:1.4"

Maintenance Note

Box2dlights was moved from Google Code to Github to make contributing easier. The libgdx team will happily merge pull requests but will not fix bugs or ensure compatibility with the latest libgdx version.

More Repositories

1

libgdx

Desktop/Android/HTML5/iOS Java game development framework
Java
22,571
star
2

packr

Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X
C
2,524
star
3

gdx-ai

Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines
Java
1,152
star
4

ashley

A Java entity system inspired by Ash & Artemis.
Java
839
star
5

gdx-liftoff

A modern setup tool for libGDX Gradle projects
Kotlin
473
star
6

fbx-conv

Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes.
C
442
star
7

libgdx-demo-superjumper

Libgdx demo - super jumper
Java
260
star
8

gdx-pay

A libGDX cross-platform API for InApp purchasing.
Java
221
star
9

gdx-video

A libGDX cross platform video rendering extension
Java
139
star
10

libgdx-demo-cuboc

Libgdx demo - cuboc
Java
121
star
11

libgdx-demo-pax-britannica

Libgdx demo - pax britannica
Java
113
star
12

libgdx-demo-invaders

Libgdx demo - invaders
Java
70
star
13

libgdx-gradle-template

Gradle template for libgdx projects that hopefully works on the CLI, Eclipse, Netbeans and Intellij IDEA
Shell
69
star
14

gdx-controllers

A libGDX cross platform game controllers extension
Java
65
star
15

libgdx.github.io

Github hosted site for libGDX
HTML
62
star
16

gdx-jnigen

jnigen is a small library that can be used with or without libGDX which allows C/C++ code to be written inline with Java source code.
Java
59
star
17

libgdx-demo-vector-pinball

Libgdx demo - vector pinball
Java
58
star
18

gdx-realsense

RealSense support for libGDX
C++
53
star
19

libgdx-maven-archetype

Libgdx Maven archetype, largely based on the PlayN archetype
Java
50
star
20

gdx-particle-editor

The official particle editor for libGDX.
Java
39
star
21

libgdx-demo-metagun

Libgdx demo - metagun
Java
35
star
22

libgdx-skins

Community submitted Scene2D UI Skins
Java
29
star
23

libgdx-demo-very-angry-robots

Libgdx demo - very angry robots
Java
16
star
24

gdx-box2d

The libGDX Box2D Wrapper Extension
C++
13
star
25

libgdx-workshop

Java
12
star
26

libgdx-site

libgdx site
HTML
9
star
27

libgdx-old-setup-ui

Old, Eclipse-only setup UI. Not maintained, but available from libgdx.badlogicgames.com/downloads/gdx-setup-ui.jar
8
star
28

jlayer-gdx

Jlayer modified version for use by libgdx
Java
6
star
29

gdx-pay-example

Example app for gdx-pay
Java
5
star
30

gdx-angle-natives

GitHub workflows to build ANGLE desktop natives and publish them to Maven Central as a fat jar.
4
star
31

gdx-liftoff-demo

A sample project automatically-generated by gdx-liftoff
Java
1
star