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 (404)
games submitted by our members
Games in WIP (289)
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  
  Rendering mode - what do I have to know?  (Read 1002 times)
0 Members and 1 Guest are viewing this topic.
Offline adamp

Senior Newbie




-x-x-x-


« Posted 2002-12-30 22:26:18 »

Hi!

I've already read a few tutorials on Java3d and I want to write my own little engine soon.
There are 3 rendering modes in Java3d:

immediate mode, retained mode & compiled-retained mode.

I want to write a little terrain engine, load some (animated) models and maybe add a tiny physics engine.
It's just a project in my free-time now, but it should be possible to make sth. bigger out of it in the future.
What do I have to think about when I want to write my engine and have to choose one of these modes?
On the one hand I don't want to use (compiled-)retained mode to find out that something gets too complicated to realize because of some restrictions.
On the other hand I don't want to use immediate mode and code everything on my own, when j3d could take much work off of me...

Maybe you have some experiences you could share with me?

Thanks in advance, Adam.
Offline elias

Senior Member





« Reply #1 - Posted 2002-12-31 13:52:56 »


The old problem of choosing the right tool... I used java3d for a while, but switched to a gl binding (gl4java and later lwjgl) after a few months of development. Here are my (probably biased) thoughts:

1. Java3D is and will always be far behind current 3d hw technology compared to a thin binding. Almost per definition, as Sun has to do much more work to integrate a new feature in java3d. But also because Sun seemingly isn't working very hard to support java games programming directly.

2. Java3D is very high level compared to e.g. OpenGL so you will get a lot of free benefits by using it. However, if you just want to apply some common 3d algorithm you found on the net, like a terrain renderer, you will spend a lot of time converting the OpenGL based ideas to java3d. Java3d contains very little documentation, at least compared to OpenGL.

3. The last time I played with java3d (1.2.1 and version 1.3 beta), the immediate mode _sucked_. Don't ever consider using it. It's buggy, even less documented and overall seems more like an add-on to please OpenGL/DirectX developers. And it's not even that immediate as the name states. So if you are worried about flexibillity and performance, consider using an OGL binding instead.

4. You mentioned that you are going to work on the project as a hobby, in which case java3d might be more appropriate, given the amount of work you have to do in OpenGL to get anything 'running'.

- elias

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 (42 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (157 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.118 seconds with 21 queries.