Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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  
  Java3d + JOGL Pipeline + Opengl ES / Android or Worldwind ?  (Read 6337 times)
0 Members and 1 Guest are viewing this topic.
Offline ylliac

Junior Newbie





« Posted 2011-11-18 08:59:05 »

Hello,

I'm trying to find a way to mix Java3D and JOGL in order to mix a personnal project made with Java3D with WorldWind or/and to move this personnal project on mobile device (android).

I found an old thread that told that someone successed to integrate a JOGL gui in Java3D but I don't manage to get his code working :

http://www.java.net/node/647737

Does someone does something like that ?

Does someone has any clues / thoughts to do that ?

Sorry for my english and to avoid misunderstandings, I don't plan in any way to move my personnal project on JOGL, for other reasons out of the subject Smiley

Regards,

Antoine
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-11-18 21:27:37 »

Java3D is dead and barely anyone around here knows much about it.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #2 - Posted 2011-11-18 21:29:32 »

Just pick one of the 3d engines listed here.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2011-11-21 22:12:10 »

Hi

Your code uses an obsolete version of JOGL and Java3D itself is obsolete, ra4king is right. Sorry but come down to Earth, Java3D has been almost completely abandonned in 2005, it has had several very minor maintenance releases but it is still very buggy and not very optimized. If you look for something close to Java3D but better maintained, try Xith3D.

You can use JOGL 2.0 to access OpenGL and OpenGL-ES. Some people succeeded in mixing Ardor3D and Worldwind. If you want to use it with JOGL 2.0, you will have to use my renderer as the default JOGL renderer of Ardor3D supports only JOGL 1.1.1a (and the competitor of JOGL of course...).

Offline ylliac

Junior Newbie





« Reply #4 - Posted 2012-02-06 09:44:49 »

Hi,

The question is not "should I change from Java3D to something else ?" but "Can we mix Java3D and JOGL ?"
If it helps, consider it is a very old project for a company who doesn't want to spend time and money to change the underlying engine Smiley

So I know we can easily mix JOGL and Ardor3D / Xith3D / JME / WorldWind Java / JReality / etc.
And because the approach is different in Java3D, the abstraction is stronger between Java3D and JOGL,DirectX or OpenGL, I'm asking if we can do the same ?

It appears that nobody seems to have done this here, too bad Sad

Concerning the health of Java3D, it is not a problem because I already use a modified version, maintained by myself.
Concerning Xith3D, I don't think it is very active these days.

It is not because a lib is not growing anymore that everybody should drop it, Java3D is very stable and does what it claims to do, which is what I look for Wink
Take a look to this project, it shows that Java3D can perfectly fit some needs event today : http://www.sweethome3d.com/index.jsp

And I'm not saying that Java3D is the best engine, just that it is stable enough to still be used today, just like other engines mentionned before.

Antoine
Offline gouessej
« Reply #5 - Posted 2012-02-06 18:38:26 »

Hi Antoine

One of Xith3D maintainer confirmed me that this engine is maintained but not actively in development.

As Java3D relies on JOGL 1 and as its direct OpenGL renderer is no more maintained (whereas it would need some modifications to work fine with >= OpenGL 3.0). Java3D is buggy, I used it several times some years ago, everyone should drop it because it is still buggy and not maintained anymore. A single person can't maintain it to target use in production. It is not stable enough. Sweethome3D is nice but anyway, you should switch to another engine. Why not giving Ardor3D a try? I could help you to port your source code if you want. Good luck.

Offline hharrison

Senior Newbie





« Reply #6 - Posted 2012-02-06 19:34:39 »

Antoine,

I'd be very interested in any modifications you've made to Java3d in your private version.

I'm in a similar position maintaining an engineering application that relies on Java3d, you can find
all my Java3d changes at:

https://github.com/hharrison/java3d-core

If you are willing, I'd love to put your changes up there as well.

Cheers,

Harvey Harrison
<harvey.harrison@gmail.com>
<harvey.harrison@ausencosandwell.com>
Offline ylliac

Junior Newbie





« Reply #7 - Posted 2012-02-08 08:15:23 »

@gouessej

Thanks for your precisions, if I had more time, I would certainly switch to Ardor3D, which is I think the engine that would fit the most my needs.

But I haven't the time to switch, even with some help Smiley
Why ? Because my code is very tied with Java3D (old mistakes), there should be a stronger abstraction in order to switch easily, and it is a long term goal during the future refactorings
So maybe next year ... or after Smiley

Another solution is Xith3D because it would take less time to make the change.
I'll study that ...

Antoine
Offline gouessej
« Reply #8 - Posted 2012-02-10 18:03:22 »

Hi Antoine

I have just ported Java3D to JOGL 2.0 and Harvey explained to me how to avoid some big root causes of crash  Grin Let's have fun. The source code will be on Github soon. This port took me about 4 hours whereas Oracle guys thought it would require 4 weeks lol.

Offline ylliac

Junior Newbie





« Reply #9 - Posted 2012-02-13 12:58:15 »

Hi Julien,

I've seen your post on Friday, that sounds promising Smiley

What about the stability ? Is it a proof of concept that needs to be improved in order to be use in a commercial application or is it just stable enough yet ?
And I've seen in another post that it is now possible to access JOGL via Java3D ? I think that may help for WorldWind integration isn't it Wink

Good job, I will try it when it will be available
Antoine
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #10 - Posted 2012-02-14 19:38:07 »

Hi

Hi Julien,

I've seen your post on Friday, that sounds promising Smiley
Smiley

What about the stability ? Is it a proof of concept that needs to be improved in order to be use in a commercial application or is it just stable enough yet ?
And I've seen in another post that it is now possible to access JOGL via Java3D ? I think that may help for WorldWind integration isn't it Wink

Good job, I will try it when it will be available
Antoine
Honestly, it was not very hard to port except for the part using the new native windowing factory. It just works fine. It only uses JOGL 2.0, I disabled the both native custom wrappers. Worldwind is already able to work with Ardor3D, I'm not sure their users are interested in some sort of Java3D integration. It is available on Harvey's github account but he forgot to commit some files :s

Offline hharrison

Senior Newbie





« Reply #11 - Posted 2012-02-15 01:04:05 »


[/quote]
Honestly, it was not very hard to port except for the part using the new native windowing factory. It just works fine. It only uses JOGL 2.0, I disabled the both native custom wrappers. Worldwind is already able to work with Ardor3D, I'm not sure their users are interested in some sort of Java3D integration. It is available on Harvey's github account but he forgot to commit some files :s
[/quote]

Hey, cut me some slack....I got all the code committed, must have been too excited reading the changes. Grin

In any event, I've gotten it up and running here, looking forward to beating on it for a few days and seeing what
kind of performance/stability it has.

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.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (59 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!