Dynamic Lightning

Dynamic Lightning
0.0 0


Hello, I want to raise this question because I have seen many asking about this functionality and perhaps this is something that should be implemented in this engine. Dynamic lighting is very useful and useful in almost all sort of games. The optimization of many light sources has been a problem area.

I have done research on this and found a project that I consider to be of good graphic quality and fast, and the best is that it’s open source. What are your thoughts about maybe implemented this in cocos2d-x core Engine? Like you did with physic engine (Box2D)

(OpenGL - SFML)
Sample: http://sourceforge.net/projects/letthebelight/


Hi Travis,
I have seen a few cocos2d-x samples with dynamic lighting and classes made for them.
I agree that this would be a great feature to match up with box2d/chipmunk objects.

Have at look at this sample here

I can’t find the link off hand but there is a cocos2d implementation that could be ported easily enough


Hi, Martell

I’ve seen it before, I remember that it was pretty basic. Lacks a lot of features. That is why I posted this sample which has most of the parts needed, such as accurate soft shadows, spreads, etc. It would be great if it was integrated in this engine :slight_smile:

Here are some features:

  • Physically accurate soft shadows
  • Quad tree scene graph
  • Light texture caching
  • Emissive lights
  • Light beams
  • Directional lights
  • Adjustable light color, attenuation, spread, source size, cone angle, bloom, and cone edge softness
  • Ambient light setting
  • Extendable light shape rendering
  • Light bloom rendering


Check this out :

or this :

(follow the link for tutorial )


Meir Yanovich wrote:

Check this out :

or this :
(follow the link for tutorial )


I will read about it. Implement this in cocos2d-x should be really nice.