开发者

Graphics Intensive Application in Java

开发者 https://www.devze.com 2023-03-03 13:54 出处:网络
I\'m making a particle engine in Java, and right now I\'m using a subclass of java.awt.canvas. I\'m using canvas.getBufferStrategy().getDrawGraphics() and then, when I\'m done, using canvas.getBufferS

I'm making a particle engine in Java, and right now I'm using a subclass of java.awt.canvas. I'm using canvas.getBufferStrategy().getDrawGraphics() and then, when I'm done, using canvas.getBufferStrategy().Show().

Now that I've got some particles (graphics.开发者_开发百科fillOval(...)) - I need to do some additive blending! Problem is, I can't find additive blending anywhere (googled). What I came up with from a google search is open gl through jogl. jogl would be a great move from graphics, since I have change the graphics color thousands of times a tick, and I can't find additive blending, but I'm just unsure as to whether or not jogl is standard and works on all (or most) computers.

Any thoughts or suggestions are welcome.


You may want to consider AlphaComposite, as shown in this kinetic model.

Addendum: This utility may be helpful in visualizing the effect of various compositing rules.

0

精彩评论

暂无评论...
验证码 换一张
取 消