Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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?

Cheers
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!!

Thanks!

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..


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

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 net.java.games.jogl does not exist

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

package javax.media.opengl 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]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (28 views)
2014-12-15 09:26:44

Mr.CodeIt (19 views)
2014-12-14 19:50:38

BurntPizza (39 views)
2014-12-09 22:41:13

BurntPizza (74 views)
2014-12-08 04:46:31

JscottyBieshaar (36 views)
2014-12-05 12:39:02

SHC (49 views)
2014-12-03 16:27:13

CopyableCougar4 (44 views)
2014-11-29 21:32:03

toopeicgaming1999 (112 views)
2014-11-26 15:22:04

toopeicgaming1999 (98 views)
2014-11-26 15:20:36

toopeicgaming1999 (29 views)
2014-11-26 15:20:08
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!