All LWJGL 2D Resources?

Started by Role, January 28, 2005, 04:00:45

Previous topic - Next topic

Role

Where can I find articles, or anything related with drawing images and primitives (line, rectangle, fill it) with LWJGL?
I don't have any experiences of OpenGL, and I *only* want to port my 2D graphics engine to LWJGL, so I dont won't to get into OpenGL too deep, just need to draw 2D stuff.
so far I have succeed to replace my graphics engine to initialize the game display and draw image based on spaceinvaders example, and I just notice that transparent is not working in OpenGL (JOGL & LWJGL) spaceinvaders example!
I have read articles on the wiki and search this forum but no luck :(
Please help......

Basically I need *everything* related with making 2D games with LWJGL


Thank you
D Java Game Engine
GTGE  Website | GTGE Forum

Matzon

There is another person (javazoid) doing a 2d drawing thingy using lwjgl - check his posts on the JGO boards:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?action=viewprofile;username=javazoid

As for transparency, you need to enable blending - see:
http://lwjgl.org/forum/viewtopic.php?t=919

Role

Wow excellent! Only by adding one line, and it works flawlessly! I'm really a dumb OpenGL n00b!!

Matzon, I have looked at Javazoid posts, and can't find what I'm looking for!

What I need now, how to draw rectangle and circle with a color, and fill rectangle and circle with a color.
Also making alpha blending effect, hope someone here can help me :)

Thanks a bunch!! only a little more to do :)
D Java Game Engine
GTGE  Website | GTGE Forum

Matzon

Well javazoid didn't post HOW he did it, but since he is emulating Graphics2D - you might want to ask him, he seems knowledgable about it

tomb

Everything you need to know is in the red book. Have a look at the second chapter.

K.I.L.E.R

Who's seriously going to read all that in 5 minutes? :lol:

tomb

Who's seriously going to make an OpenGL game in 5 minutes? :lol:

princec

I learned everything I know from the Red Book, and then I learned about a few things just by adapting other peoples source code, and then by playing around with things myself. It's all part of the fun!

Then I enshrined my knowledge - all of it! - in SPGL. That's pretty much everything I know about OpenGL in there. As you can see, it's not much. But it seems to be enough!

Cas :)

Role

The red book makes my head dizzy!
And it's not 2D and LWJGL stuff?
I read and test it and not working :(
Guess my setup is special for 2D things, so when I try the code for drawing, it's not working.
Anyway the LWJGL and Java2D now working perfectly, got from a nice ppl called, Inquisitor in javagaming.org :D
Now time to beta test it, guess I should make it as new post ;)

Thanks for everything
D Java Game Engine
GTGE  Website | GTGE Forum