Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 2D / Re: Drawing a transparent image on: 2009-05-14 08:06:03
In that case what am I doing wrong?

Do I need to utilize a certain composite for this? And the image has been a .png all the time.
2  Java Game APIs & Engines / Java 2D / Re: Drawing a transparent image on: 2009-05-12 16:51:51
Okay, but how do I get the ARGB value of a certain color?

3  Java Game APIs & Engines / Java 2D / Re: Drawing a transparent image on: 2009-05-12 16:42:06
Thanks, but I still can't get this to work. I stole the code posted by Riven, and I'm calling it like this:

spriteImage = Cam.replaceColor(spriteImage, spriteImage.getRGB(0,spriteImage.getHeight()-1), Color.YELLOW.getRGB());

And I've made sure that spriteImage is of the type TYPE_INT_ARGB. I know it's not supposed to be yellow, but no colors work. What am I doing wrong here? Thanks!
4  Java Game APIs & Engines / Java 2D / Drawing a transparent image on: 2009-05-12 12:03:12
I'm trying to make a certain colour of a picture transparent by looping through every pixel and if its value is equal to the color to be replaced, I replace it with another value that I think is transparent. However, when I draw the image with my g2d instance it doesn't come out transparent. The color is changed from the original colour to something else. I'm guessing that I either have the wrong RGB value for the alpha, or that I have to do something with the g2d instance in order to make it draw transparent colors? If that is the case, what should I do?

The RGB values I have tried are 0x00000000, 0 and 0x8F1C1C.

Help please!!


edit: I've checked google and used the search function, but they have not taught me anything new.
5  Java Game APIs & Engines / Java 2D / Re: Need help performing additive blending in Java2D on: 2009-02-27 22:48:10
Thank you, I managed to import the package, gonna experiment with it tomorrow Smiley

Also yeah, PhotoComposite seems pretty interesting!
6  Java Game APIs & Engines / Java 2D / Re: Need help performing additive blending in Java2D on: 2009-02-25 14:41:09
That does indeed look promising, but I can't seem to find a way to download it. I've talked to some teachers in school but after checking they all seem pretty clueless as well. One mentioned that it is included in the J3D package, but I checked and it wasn't in there.

I've obviously googled and checked the link for downloads but with no luck. So where can I get it? Thank you!
7  Java Game APIs & Engines / Java 2D / Need help performing additive blending in Java2D on: 2009-02-10 13:47:16
I am making a 2D graphics engine using Java2D and I'm in need of help. I want to perform additive blending on my particles but I can not find a way that is fast enough for real-time drawing. Any hints?

I might also be interested in using the transparent pixels stored by photoshop and then replace my black-ish pixels with those.

For those who do not know what additive blending does, it "adds" the value of a pixel to draw to the pixel it's drawing to and thus a part of a picture will seem more transparent depending on how black it is since black==0.
8  Java Game APIs & Engines / JOGL Development / Re: Issues with packages on: 2008-10-14 20:31:53
But.. I do keep my helicopter in my garage^^

Will java give access to surfaces, blend modes etc?
9  Java Game APIs & Engines / JOGL Development / Re: Issues with packages on: 2008-10-14 16:08:01
@ cylab: I changed to netbeans and had the same problems, but your post solved them all. I can now compile and run stuff Smiley Thanks a lot man

@ Z-Knight: Will using jogl be a lot harder? It can do 2d as well right? Cuz I would like to have some experience with it for whatever purpose it can fill in the future..

10  Java Game APIs & Engines / JOGL Development / Issues with packages on: 2008-10-13 10:28:45

Maybe this should go in the clueless newbie subforum, I'm not sure. If this is the case, could a mod please be so kind as to move it there?  Smiley

A friend and I are experimenting with JOGL in hopes of learning some stuff and making a simple 2D graphics engine for a project in school over the coming months. So far, all the guides I've read that are supposed to get me started tell me to put the dlls in the bin folder of the JRE  and the jar files in the lib folder of the JRE (when this didn't work I put both the jar file and the files it contained in the lib folder. No change). I did this, and then tried to compile some sample code from the tutorials, and they all complain about packages not existing:

package does not exist

I read on a sun-forum that I should use instead, but I get the same thing:

package does not exist

I'm trying to compile it in JCreator and I'm running windows vista. It seems to work fine for my friend who's running debian, but I don't know what he uses to compile stuff.. (I am not willing to switch to linux at this time, so please don't suggest that)

Any and all help is appreciated.

edit: I noticed that all the guides I find seem to be 5 years old or more. Are there any tutorials that are more up to date?
Pages: [1]
IanParcs (44 views)
2016-04-18 13:18:53

KaiHH (43 views)
2016-04-18 07:35:41

KaiHH (74 views)
2016-04-15 11:43:58

theagentd (75 views)
2016-04-14 01:16:17

theagentd (89 views)
2016-04-14 01:15:43

IanParcs (103 views)
2016-04-12 02:51:16

IanParcs (46 views)
2016-04-12 02:50:03

IanParcs (42 views)
2016-04-12 02:49:54

IanParcs (37 views)
2016-04-12 02:49:52

IanParcs (47 views)
2016-04-12 02:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 11:56:17

List of Learning Resources
by SilverTiger
2016-02-05 08:39:47

List of Learning Resources
by SilverTiger
2016-02-05 08:38:38

List of Learning Resources
by SilverTiger
2016-02-05 08:35:50

Rendering resources
by Roquen
2015-11-13 13:37:59

Rendering resources
by Roquen
2015-11-13 13:36:58

Math: Resources
by Roquen
2015-10-22 06:46:10

Networking Resources
by Roquen
2015-10-16 06:12:30 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‑
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!