Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 1778 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
« League of Dukes »

JGO Knight


Medals: 13
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!
Play the free demo of Revenge of the Titans!
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
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


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!
Play the free demo of Revenge of the Titans!
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
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (80 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.131 seconds with 21 queries.