Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Aplha and Performance  (Read 2784 times)
0 Members and 1 Guest are viewing this topic.
Offline ranabp

Senior Newbie




Blit Me :)


« Posted 2003-06-08 15:58:51 »

When i create Colors with Aplha value, it gives me jerks / tiny halts. Same Happens when rendering those colors !
Isnt Transperancy in 2D Api supported in hardware ?

Offline Mark Thornton

Senior Devvie





« Reply #1 - Posted 2003-06-08 16:15:45 »

I think only bitmask transparency is hardware accellerated.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2003-06-08 18:28:27 »

There are properties that can be set to enable hardware acceleration for true alpha channels.  I can't remember them off-hand.. search the forums.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline temrad

Junior Newbie




Java games rock!


« Reply #3 - Posted 2003-06-18 10:19:37 »

For short, the properties are :

   -Dsun.java2d.translaccel=true
   -Dsun.java2d.ddforcevram=true

A complete explanation is giben by trembovetski in this forum (Topic: Info:HW support for translucent images in 1.4.1_02).

It works fine in 1.4.2 beta on Windows (x3 speed) and seems to work also in 1.4.1_02 (I havn't try it on that JDK).
Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2003-06-26 11:05:28 »

Just though I'd say thanks for this info, its really changed the look and feel of my stuff...

I've tried it on event the most weedy of platforms and I still get accelerated alpha (at least on windows)..

Is there any known case where this doesn't work.. if not, this information needs to be added to the article on accelerated images,

Thanks again,

Kev

Offline Abuse

JGO Ninja


Medals: 60


falling into the abyss of reality


« Reply #5 - Posted 2003-06-26 15:21:49 »

It might be worth testing it on ATI gfx cards. I know there were quite a few issues with hardware acceleration+ATI in <1.4.2.
Offline kevglass

« JGO Spiffy Duke »


Medals: 319
Projects: 25
Exp: 22 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2003-06-26 15:42:08 »

I'm using an ATI in my laptop.. everything's fine Smiley

Offline vydias

Senior Newbie




Welcome to my world!


« Reply #7 - Posted 2003-07-02 04:56:40 »

I've been using it for the last month or two and works great on 1.4.2 but doesn't doesn't produced accelerated images with 1.4.1 (not sure about exact version) even though it was said to be working on even earlier verisons. Something must of been changed in 1.4.2 and that is why they finally felt comfortable to give us the extentions for enabling it.
Offline zaphod

Senior Newbie




Java Developer by day, Java Developer by ... hey


« Reply #8 - Posted 2003-07-04 14:48:04 »

Just a quick question before I decide what direction to go with my graphics Objects...  Do the new flags allow a full Alpha Channel to be supported (as with PNG) and if so does JAVA handle PNG effectively on it's own or should I be using an outside package (like sixlegs).  Or are we just talking about speeding up calls like:

g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, .5f));

Thanks!
Offline Abuse

JGO Ninja


Medals: 60


falling into the abyss of reality


« Reply #9 - Posted 2003-07-04 15:34:15 »

yes, with the new flags all alpha operations are accelerated. (whether it be alpha integral to an image [such as PNG files] or alpha added at a later stage [AlphaComposite])

I seem to remember there was 1 situation where acceleration isn't applied, even though it could be - but I can't remember what situation it occured in. (not worth worrying about though)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
Ecumene (52 views)
2017-09-30 02:57:34

theagentd (76 views)
2017-09-26 18:23:31

cybrmynd (183 views)
2017-08-02 12:28:51

cybrmynd (182 views)
2017-08-02 12:19:43

cybrmynd (189 views)
2017-08-02 12:18:09

Sralse (197 views)
2017-07-25 17:13:48

Archive (747 views)
2017-04-27 17:45:51

buddyBro (881 views)
2017-04-05 03:38:00

CopyableCougar4 (1429 views)
2017-03-24 15:39:42

theagentd (1319 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!