Light-System

Hi, I already read the topics in the forum about light-systems, but I think I am on the wrong track.
I already got a daylight system (very simple),
it´s a 2D-Game, the view is like pokemon (no real topview)
At the moment I am just rendering a black layer on top, now I would like to add torches etc…

  1. Should I paint all shadows at a bufferddImage and after that render the bufferedImage on the panel?
  2. I am not sure how to create a smoth pass to the dark area.
  3. What´s the best way to render the non-lighted area black?
    Should I paint the whole bufImage black and after that paint the light?
    Some pixels would be painted a bunch of times.

best regs. Phibedy

Painting anything to a bufferedimage and then painting the bufferedimage can be very slow. You could, clip out all the regions that will have torches then just render the torches.

If you want to get any form of good fast lighting you need to drop java2D and move to openGL.