Hello Guest

All LWJGL 2D Resources?

  • 8 Replies
  • 10516 Views
*

Offline Role

  • *
  • 17
    • http://www.goldenstudios.or.id/
All LWJGL 2D Resources?
« on: January 28, 2005, 04:00:45 »
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

*

Offline Matzon

  • *****
  • 2242
All LWJGL 2D Resources?
« Reply #1 on: January 28, 2005, 06:28:01 »
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

*

Offline Role

  • *
  • 17
    • http://www.goldenstudios.or.id/
All LWJGL 2D Resources?
« Reply #2 on: January 28, 2005, 14:05:34 »
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

*

Offline Matzon

  • *****
  • 2242
All LWJGL 2D Resources?
« Reply #3 on: January 28, 2005, 14:14:21 »
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

*

Offline tomb

  • ***
  • 148
All LWJGL 2D Resources?
« Reply #4 on: January 28, 2005, 16:08:51 »
Everything you need to know is in the red book. Have a look at the second chapter.

All LWJGL 2D Resources?
« Reply #5 on: January 29, 2005, 16:09:41 »
Who's seriously going to read all that in 5 minutes? :lol:

*

Offline tomb

  • ***
  • 148
All LWJGL 2D Resources?
« Reply #6 on: January 29, 2005, 17:05:51 »
Who's seriously going to make an OpenGL game in 5 minutes? :lol:

*

Offline princec

  • *****
  • 1933
    • Puppygames
All LWJGL 2D Resources?
« Reply #7 on: January 29, 2005, 17:46:48 »
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 :)

*

Offline Role

  • *
  • 17
    • http://www.goldenstudios.or.id/
All LWJGL 2D Resources?
« Reply #8 on: February 02, 2005, 09:31:18 »
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