Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (499)
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  
  is OpenGL outdated?  (Read 1956 times)
0 Members and 1 Guest are viewing this topic.
Offline StonieJ

Junior Newbie




C++ can suck it!


« Posted 2003-03-03 04:33:04 »

I would like to get into 3D eventually, but I was wondering if OpenGL was still the "current best thing" or if it was getting replaced by something else.  The red book would of course be the first book I buy, but is there another 3D interface that's better?  Also, I'm talking about 3D graphics for applications, NOT applets (if that matters).

Also, all the OpenGL code I see is C++ based.  (i.e., #include statements and whatnot).  How would I use OpenGL in Java?  (or can I even do that?)
Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #1 - Posted 2003-03-03 04:38:08 »

OpenGL isn't outdated, however a version 2.0 is being worked on - no timeframe though.

The "Other" 3D api is Direct X. Selection of either depends on your platform, and your target platform.
DirectX = Window
OpenGL = All others

As for the redbook, you can download it here (though a hardcopy would be nice):
http://www.gamedev.net/download/redbook.pdf

Offline StonieJ

Junior Newbie




C++ can suck it!


« Reply #2 - Posted 2003-03-03 04:44:46 »

So DirectX only works with Windows, but OpenGL works with everything (including Windows, I hope)?  I've heard OpenGL is much easier than DirectX.  Agree?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline elias

Senior Member





« Reply #3 - Posted 2003-03-03 04:46:08 »

...And because the dear Matzon forgot to mention it, you _can_ do OpenGL with java. Try lwjgl at sourceforge, that includes OpenGL, OpenAL, input and vector libraries:

http://java-game-lib.sf.net

It isn't possible with standard/pure java though.

EDIT: yup, opengl is available on everything (almost), including windoze itself.

Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2003-03-03 08:27:20 »

OpenGL is somewhat easier than DirectX. In terms of sheer typing alone, OpenGL requires about half the amount of code to achieve the same result. Much of this comes from having somewhat shorter constant names and hiding some of the nastiness in the driver.

Cas Smiley

Offline cfmdobbie

Senior Member




Who, me?


« Reply #5 - Posted 2003-03-03 12:46:12 »

Syntactically I prefer OpenGL over Direct3D any day - if you're a Windows programmer you may be able to read things like "hRes=lpddClipper->lpVtbl->SetHWnd(lpddClipper,0,hwnd)" or "hRes=lpddPrimary->lpVtbl->Blt(lpddPrimary,&rDstRect,lpddDevice,&rSrcRect,DDBLT_WAIT,NULL)", but it just makes my head hurt. Wink

It's reasonably fair to say that OpenGL had beun to fall behind Direct3D in terms of features and usability, but the aforementioned version 2.0 of OpenGL is set to bring OpenGL right to the forefront yet again.

There are a number of OpenGL bindings for Java, the popular one around here being LWJGL.  In fact, the responses you've had so far have been from LWJGL developers, but they forgot to mention that... Grin

Yes, OpenGL works on Windows - very fast in fact.  It's no big secret that Quake 2 and 3 and the new Doom3 are all written primarily in OpenGL.  With games like that using it, you can bet that commercial graphics card drivers are very well optimised for OpenGL.


Interesting question about whether it's going to be replaced by the "next big thing"... does anyone know of any 3D interfaces in general use apart from OpenGL and Direct3D?  Are we really in a two-horse race here? Huh

Hellomynameis Charlie Dobbie.
Offline Breakfast

Senior Member




for great justice!


« Reply #6 - Posted 2003-03-03 15:21:19 »

I'd say less "2 horse race" and more "one generally accepted standard and Direct3D".
Offline Ifadolai

Junior Member




Java forever!!


« Reply #7 - Posted 2003-03-06 16:15:34 »

Some of the lesser players are:

Glide
RenderGL
3DR
Heidi

BTW.   Java3D also offers a scenegraph API on top of OpenGL.

Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31  Fax: +45 65 93 29 99
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #8 - Posted 2003-03-06 18:16:41 »

Glide - is somewhat dead now :]
Heidi - lol Cheesy


弾幕 ☆ @mahonnaiseblog
Offline Ifadolai

Junior Member




Java forever!!


« Reply #9 - Posted 2003-03-07 12:35:47 »

Well, I think they still use Glide3D in many Linux gaming projects. At least I had to install it to be able to play several games made for Linux.

As for Heidi, well I dont even know what it is..I just found it mentioned somewhere on the net.  I think it was made by autodesk.

Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31  Fax: +45 65 93 29 99
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pjt33
« Reply #10 - Posted 2003-03-24 10:51:34 »

Quote
...And because the dear Matzon forgot to mention it, you _can_ do OpenGL with java. Try lwjgl at sourceforge <snip>

Although, of course, lwjgl is Windoze-only ATM.
Offline elias

Senior Member





« Reply #11 - Posted 2003-03-24 11:15:09 »

Quote

Although, of course, lwjgl is Windoze-only ATM.


Erh no. It works fine on linux. And hopefully macosx soon.

- elias

Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #12 - Posted 2003-03-24 13:29:17 »

Imagine our surprise when Alien Flux ran on Elias' linux box. It was quite a shock to me, anyway.

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (43 views)
2014-04-15 18:08:23

BurntPizza (39 views)
2014-04-15 03:46:01

UprightPath (55 views)
2014-04-14 17:39:50

UprightPath (37 views)
2014-04-14 17:35:47

Porlus (53 views)
2014-04-14 15:48:38

tom_mai78101 (76 views)
2014-04-10 04:04:31

BurntPizza (135 views)
2014-04-08 23:06:04

tom_mai78101 (235 views)
2014-04-05 13:34:39

trollwarrior1 (196 views)
2014-04-04 12:06:45

CJLetsGame (204 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!