Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Java2D -> LWJGL = easy?  (Read 3946 times)
0 Members and 1 Guest are viewing this topic.
Offline mill

Junior Devvie

popcorn freak

« Posted 2003-04-22 14:12:18 »

how easy it is to convert a 2D game into 3D using LWJGL? i know some opengl, but not much.

this is how i'd like to convert a game:
2D using software -> 2D using LWJGL (just quads instead of sprites) with fixed camera -> 3D using LWJGL (boxes instead of simple quads) with fixed camera -> 3D using LWJGL (proper objects instead of boxes) with fixed camera

and somewhere add moving camera (as in get scrolling for free).

is the rendering loop all that needs to be changed? just investigating the possibilities here, haven't looked at LWJGL at all Smiley

Offline darcone

Junior Devvie

Size matters

« Reply #1 - Posted 2003-04-22 15:21:33 »

Well that is exactly what I use lwjgl for... And tbh it is much easier to create 2d with lwjgl and gives much better performance than java2d.. for me at least Smiley
check the Schlug Attuck post in the "Your games here" forum to see what I am talking about.
Offline killingtime

Senior Newbie


« Reply #2 - Posted 2003-04-22 15:40:19 »

I'm using OpenGL to make a 2D game. I was using GL4Java, now I'm porting to LWJGL, though it has been going okay there are a few points I want to make:

Quads potientally are a different kettle of fish. Collision detection might need to be changed.

LWJGL does not use, as far as I know, AWT and as such if you use keyboard and mouse liseners in your game, which I expect you will to make your player move around screen, then these will have to be changed to LWJGL versions, which uses polling of mouse and keyboards rather than event passing (event driven stuff does tend to be slow).

So there might be more than just changing the rendering loop but OpenGL is a good way to go IMHO.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline mill

Junior Devvie

popcorn freak

« Reply #3 - Posted 2003-04-23 06:02:56 »

i was going to keep my AWT stuff at first and then if necessary move to LWJGL completely. speed is not a concern right not (~250+ fps using AWT and jbanes timer).

is there a problem with using AWT and LWJGL together?

Offline cfmdobbie

Senior Devvie

Medals: 1

Who, me?

« Reply #4 - Posted 2003-04-23 07:50:27 »

is there a problem with using AWT and LWJGL together?

Yep, LWJGL isn't based on AWT so there's no Graphics backing, no way of rendering AWT components on the OpenGL canvas, no hook into AWT events etc.  You'll have to roll your own or petition for AWT support, I'm afraid.

Hellomynameis Charlie Dobbie.
Offline mill

Junior Devvie

popcorn freak

« Reply #5 - Posted 2003-04-23 09:31:01 »

awt isn't just about graphics Smiley

i was more referring to other stuff like java.awt.geom etc

Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #6 - Posted 2003-04-23 09:41:09 »

I'm quite happily using some AWT classes with LWJGL, mainly for loading .png's since it does a lot of the work for me. The actual GUI components of AWT you can't use, other than that it should be fine.

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Captain-Goatse

Junior Devvie

I suck at teh 2D. XBOX IS BIG LOL!111

« Reply #7 - Posted 2003-04-23 10:26:40 »

You have to be carefult when importing stuff from awt, since it might summon the evil awt thread. I remember there was a big thread at forums. I don't know much about it, since I like to at least try to write everything myself.
Pages: [1]
  ignore  |  Print  

EgonOlsen (59 views)
2018-06-10 19:43:48

EgonOlsen (41 views)
2018-06-10 19:43:44

EgonOlsen (61 views)
2018-06-10 19:43:20

DesertCoockie (240 views)
2018-05-13 18:23:11

nelsongames (142 views)
2018-04-24 18:15:36

nelsongames (141 views)
2018-04-24 18:14:32

ivj94 (883 views)
2018-03-24 14:47:39

ivj94 (144 views)
2018-03-24 14:46:31

ivj94 (795 views)
2018-03-24 14:43:53

Solater (159 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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