Hi,
We do have hw-accelerated blending; it's just not enabled by
default (yet). The OpenGL pipeline has this (and much more), but
the pipeline is not enabled by default on any of the platforms due
to various driver and performance issues. I'd encourage you to
try it out to see if it works for you on your target platform:
-Dsun.java2d.opengl=true
We also enable accelerated blending through DirectX, but again
not by default (again, due to driver and performance issues).
In the current release (1.5), you can try it out with this flag:
-Dsun.java2d.translaccel=true
On the release currently in-development (Java SE 6), we've got
a very full-featured use of Direct3D (more along the lines of the
OpenGL pipeline), again not enabled by default. To see how it
works on your system, try:
-Dsun.java2d.d3d=true
The plan is to actually enable these things by default, we're just
not there yet. The approach on Windows will probably be to use
the Direct3D pipeline by default, and OpenGL will hopefully be enabled
by default elsewhere. The holdup now, driver robustness and
performance, is being addressed by various means. For example, the
Single Threaded Rendering work in Mustang went a long way toward
addressing robustness on ATI platforms as well as overall performance.
Direct3D seems to have less driver issues in general, but the
performance is not where we want it to be yet for simple
GUI applications, thus the opt-in model of using the runtime flags.
In a future release, we hope to address this issue and enable it
by default as well.
So the bottom line is: it's there if you need it, but the stuff
you're looking for is not on by default because of concerns for
the mainstream apps that probably don't need it (yet).
Chet.
Bira Neto wrote:
My question is, why isn't there hardware accelerated alpha blending in
java 2d yet? Why transparency is made with software mode? The minimum a
decent graphical application must have these days are fast transparent
sprites. Alpha blending is the key to most advanced effects. While
java2d doesn't enable fast hardware alpha blending it can't be
considered for serious graphic applications (to be more specific, for
games). I've been developing with java2d for a year now, I'm a bit
frustrated for not being able to use transparent graphics in my apps.
Actually my real question should be... will java2d ever have hardware
alpha blending? And if so, will it really have to depend on opengl? I
don't want to go back to C and DirectX... ;)
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".