Blending modes

For GoSub, i wondered about the addidion of new blending modes into Java2D. For years, that was not done and i still don’t know why.
Any clue?

What modes exactly do you have in mind? As I understand, we now have all Porter-Duff rules already in AlphaComposite class.

And you have an alternative to use your own implementation of the Composite interface to define your own composite rule.

Hello.
I was thinking Additive, Substractive, Multiply and Divide.
Of course, i can implement those myself, but that would break your accelerated pipeline, which is something i really don’t want.

Yes, it is exactly one of the fatures I need for my special effects. i.e. Additive is particularly useful for light effects.

I do it by sw at the moment. See my ExtensibleComposite here: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1089907350

Nice point Pepe.

Not only it is useful, but it’s necessary for most games. GoSub would have been a rtype clone if i had additive… (would then have been less original, but could have been funnier, visually talking)

[quote]For GoSub, i wondered about the addidion of new blending modes into Java2D. For years, that was not done and i still don’t know why.
Any clue?
[/quote]
It’s something that we could certainly consider, but we would never know it was “in demand” if you don’t file an RFE! If you think of a feature that is not already available in the Java 2D API, please file an RFE for it, and we’ll give it some consideration.

Chris

awww. believe it or not, i thought someone already did… i can’t believe it was not the case.
I remember Jeff (and many others) saying on first JGO board that it had to be implemented for 1.4, as it was very needed…

RFE submitted. review id 301368.

thanks, we got the rfe today (sorry, don’t remember the bug id off hand)…

hehe. just got it.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5094232

not visible actually, but will be soon.
thanks a lot !!!
( crossing fingers for an implementation soooooon. Oh, please, people, don’t rant about Sun slow reaction, or your feeling that it will never be done. While it’s a possibility, you certainly already said it hundred times. Thanks to you also. ;D )

And many thanks go to:

pepe
this forum
the java2d team

Cheers,

Mik