6

I've been attempting to make a 2D space-like game using Java just for the fun of it. I've decided just to use Java's Graphics2D to render my game because I wasn't in the mood to learn LWJGL. However, I just now realized how limited it is. For example, I realized a nice bloom/glow effect would look really nice. However, I can't find anything on Google about doing so with Graphics2D and without using another library.

What bloom effect I'm looking for:
https://gamedev.stackexchange.com/questions/18594/how-can-i-make-this-style-of-2d-glowing-graphics

Bloom information:
http://en.wikipedia.org/wiki/Bloom_%28shader_effect%29

So the main question is, does anyone know of a good method to add a sharp bloom shader effect using Graphics2D?

Community
  • 1
  • 1
CHess
  • 422
  • 5
  • 14
  • The closest thing I can think of would be to create an effect using ConvolveOp with custom matrices. If you play around with that a bit, you should be able to create something similar to what you're looking for. – Josh1billion Nov 25 '13 at 01:48
  • 2
    For the benefit of everyone else reading this question - http://en.wikipedia.org/wiki/Bloom_%28shader_effect%29 – Gilbert Le Blanc Nov 25 '13 at 01:49
  • @Gilbert Le Blanc Apologies, I should have been more detailed about everything. – CHess Nov 25 '13 at 01:50
  • @Josh1billion To be fair, IIRC doing a convolution with a custom matrix describes about half of all common image processing operations. – millimoose Nov 25 '13 at 01:52

1 Answers1

7

There's no bloom effect ready for use available in the Java 2D API, but it is certainly possible to implement one.

karlphillip
  • 92,053
  • 36
  • 243
  • 426