Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  
  OpenGL or DirectX?  (Read 1088 times)
0 Members and 1 Guest are viewing this topic.
Offline titanandrews

Junior Newbie




Java rocks!


« Posted 2004-04-08 14:19:21 »

From the Java3D FAQ What is Java3D? "...It uses either DirectX or the OpenGL low level API to take advantage of 3D hardware acceleration."

Can someone tell me what this means? Does it use both? I thought you had to use one or the other.

I am a gaming beginner....

thanks,

Barry
Offline Breakfast

Senior Member




for great justice!


« Reply #1 - Posted 2004-04-08 15:58:16 »

Open GL and DirectX are both APIs that let your code talk directly to the video card, letting it do the 3d stuff for you. They basically both do the same thing, but DX is proprietary to windows while opengl is not (although Microsoft owns half the patents it depends on...) an advantage of java3d is that it means you don't have to make that choice - you just choose the one that works best for your video card.

Usually the openGL ones work best, so I would start there.
Offline titanandrews

Junior Newbie




Java rocks!


« Reply #2 - Posted 2004-04-08 16:19:38 »

So you're saying that it's a configuration option or a method call that specifies to use OpenGL or DirectX?

It would seem since Java 3D is not specific on the underlying API, it would be better to use something like JOGL if you want to strictly use OpenGL.  Am I wrong?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #3 - Posted 2004-04-09 17:54:55 »

Its an installation option. Either install Java3D/DX or Java3D/OGL. Take a look to the download page and you will see.....

Yes, if you want to do low-level OpenGL coding, use JOGL or LWJGL (just to mention to 2 most popular bindings those days). There is not one OpenGL or DirectX specific call in Java3D.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Online kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2004-04-09 18:13:40 »

Quote

It would seem since Java 3D is not specific on the underlying API, it would be better to use something like JOGL if you want to strictly use OpenGL.  Am I wrong?


This isn't always true. If you want to get some of the very low level details then JOGL is for you. However, if you're too interested in the super latest features Java3D gives you a nice abstraction away from the low level details and gets your game done quicker.

Kev

Offline misterX

Junior Member




java forever!


« Reply #5 - Posted 2004-04-09 19:04:18 »

Quote

Usually the openGL ones work best, so I would start there.

From j3d.org: "we found the DirectX 1.2.1 implementation to be far more stable than the OpenGL 1.2.1 implementation"
And about performances, many ATI cards have a better support for DX than OGL. (On my machine, the framerate using DX impl. is twice the one using OGL).
This is just to point out that the OGL impl. isn't always better, you need to test both to know which one works the best on your machine.

cheers.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #6 - Posted 2004-04-09 20:56:44 »

yeeees, but that really depends.... on the app, the card, the driver,....

If you use Java3D, better don't care and let the customer choose the best for him Sad

As an average they are quite equal.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Mithrandir

Senior Member




Cut from being on the bleeding edge too long


« Reply #7 - Posted 2004-04-13 15:32:19 »

Darn, I missed something during my last round of updates then Sad    I thought I'd cleaned out all the 1.2  references in the FAQ.  Right now, it's split as to the stability of the OGL v D3D versions of J3D. The OpenGL version has more complete support (D3D doesn't have a number of the options at the low-level API, there's a separate document on that on the j3d.org site).  Mostly the difference these days is dependent on the video driver implementation. For example, ATI's OpenGL drivers aren't that crash-hot, so you're better using the D3D version for those cards, and using OGL on nVidia cards.

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
Offline Breakfast

Senior Member




for great justice!


« Reply #8 - Posted 2004-04-13 15:34:54 »

I have found, broadly, that ATI plays much better with DX while everyone else is slightly better with OpenGL. NVidia much better with it.
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.

Riven (18 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (41 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!