Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  JOGL vs JAVA3D question  (Read 844 times)
0 Members and 1 Guest are viewing this topic.
Offline JavaJeff

Senior Newbie




Einsteinian geodesic...


« Posted 2006-02-14 03:15:42 »

I'm moving from C/C++ to Java for a game programming project and I'm having a very hard time deciding on which Java/OGL binding to use. I read Jeff's most interesting FAQ and ran across this jewel:

Quote
Although it doesn't come up as much in games, it is also worth noting that Java3D can only render in "heavyweight" mode using AWT. That means that if you try to put a "lightweight" Swing component on top of the 3D, it won't work-- the 3D scene will overwrite the pixels. JOGL supports lightweight mode, so any scenegraph based on it should support lightweight or be easy to modify to do so. If you want a 3D scene in a "window" inside your game, perhaps for a multi-pane adventure game, Java3D is probably not for you.

This is an important item to me as I wish to render different "real time" camera views in an "instrument console". For instance, a targeting camera. So, if I'm reading this correctly, to achieve the effect I want, JAVA3D is definately out of the picture and I'll need to use JOGL and a scenegraph that support it?

Very noobish Q, but hey, gotta ask questions. Thx.
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #1 - Posted 2006-02-14 04:54:03 »

1. It depends on what you're doing. If you're creating a full-up action game, using Swing is not the way to go. You usually want to create your own in-game widgets to handle user events. Both APIs should be able to give you sub-views (a la Bridge Commander) without resorting to lightweight rendering.

2. Java3D is a scenegraph. That means that it allows you to create a model of what your 3D world will look like, then it will try to render that model as fast as possible. JOGL is a direct OpenGL mapping. That means that you can send commands to render polygons, but all the hard work inherent in depth sorting and world management has to be done by you and you alone.

The choice between using an existing scenegraph and your own custom engine is a decision that requires a great deal of thought and planning. The scenegraph makes things easy and will render most environments (including Quake-like environments) without too much difficulty. A custom engine, OTOH, will only be as good as you are. If you have complex requirements (for example, meshes that morph into more detail as you get closer) then a custom engine can provide. If you're just going to reimplement a standard scenegraph badly, then you're wasting your time.

Just to make your life more difficult, other Scenegraphs that are more focused on gaming include:

Xith3D - A scenegraph that attempts to be somewhat compatible with Java3D, but more gaming focused.
jMonkeyEngine - A scenegraph that is focused on being a feature-rich option for gaming.

Try lurking in the 3D forums here for more info. Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline g666

Junior Duke





« Reply #2 - Posted 2006-02-14 11:27:33 »

If you're just going to reimplement a standard scenegraph badly, then you're wasting your time.

I wouldnt say that, but i guess its not the easiest or quickest way to go about things.

desperately seeking sanity
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.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!