Test if feature possible (Bloom)

Well basically I want to ask, if there is a way to find out what exactly is supported.



My problem currently is, that I have a bloom pass as a additional effect, but it is not needed to play.

Now how could I check if the hardware does support the bloom pass? So that I can enable/disable it based on that?

In jMP you can go to Help->Graphics Capabilities, it shows you all caps of the renderer.

But that only works for my pc, except I want to bundle jmp with anything i distribute, or?

You can get the renderer caps from the renderer at any time. renderer.getCapabilities() or getCaps() or something.

Bloom requires these caps:

FrameBuffer

NonPowerOfTwoTextures



Ideally these checks should be in FilterPostProcessor … Maybe something like FilterPostProcessor.isSupported(renderer) after you add all the filters.

Hey, nice idea, we could make some “required features” for each filter and the filterPostProcessor would just enable those that can be displayed on the current hardware

Really great idea!

Would be nice to have functions that return required caps. Not only for post processors, but also for other stuff (maybe most useful, some general check if user can at least run OpenGL 2.0).

InShadow said:
Really great idea!
Would be nice to have functions that return required caps. Not only for post processors, but also for other stuff (maybe most useful, some general check if user can at least run OpenGL 2.0).

uh...there is : renderManager.getRenderer().getCaps()

the idea is to match this caps with features' requirements and disable features if those requirements are not met.

Yes pertty much something like that would be really nice, since it allows you to check what is suppported without having to know each little technique that is used somewhere far down the framework.