Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (756)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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 binding  (Read 1751 times)
0 Members and 1 Guest are viewing this topic.
Offline keltoi

Junior Newbie

Java games rock!

« Posted 2004-04-01 07:46:50 »

Hi folks,

i find this stuff very interesting,...
Are there any plans to bind the physics engiene to java3d and if not
how complicated would that become?
[By the way, is it wise to use java3d - seems to me that sun didn t invest mutch work into it...]

Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #1 - Posted 2004-04-01 09:21:02 »

arguments of Java3D vs Xith3D aside (my personal preference is Xith3D but that is what best suites my needs - just pick whichever is best suited for you).

Creating a Java3D binding of Odejava is very easy, especially since the addition of the org.odejava.display package which abstracted away most of the binding stuff.

Here's some text I wrote to another person about this exact topic (even about Java3D so maybe he might have gone and made it - even if he did it's not much work anyway):

All you need to do is implement org/odejava/display/ using your display library.  You can use the Xith3D object Xith3DDisplayObject as a guide.

Optionally you can create a utility for Java3D similar to
OdejavaToXith3D which can automatically create Xith3D objects based on
the ODE geom.

That's it!  Not rocket science eh?  All you have to do is port Xith3DDisplayObject to Java3D and vola - you've got your binding.  The interface you need to implement consists of only a few methods.  It's even easier for Java3D because TransformGroup is fairly similar between them.

Harder to port is the OdejavaToXith3D class - but that is optional.  If you are porting it, please talk to me first as there is some deprecated code in it which you don't want to port.

The official documentation is here:

The interface you need to implement is here:
(1 method! how easy can we make it?)

If you have any queries - ask away Smiley

Please feel free to share you code once complete (better to submit an enhancement issue or email it, these forums kill indents).



Pages: [1]
  ignore  |  Print  

DesertCoockie (54 views)
2018-05-13 18:23:11

nelsongames (86 views)
2018-04-24 18:15:36

nelsongames (76 views)
2018-04-24 18:14:32

ivj94 (761 views)
2018-03-24 14:47:39

ivj94 (93 views)
2018-03-24 14:46:31

ivj94 (645 views)
2018-03-24 14:43:53

Solater (106 views)
2018-03-17 05:04:08

nelsongames (187 views)
2018-03-05 17:56:34

Gornova (428 views)
2018-03-02 22:15:33

buddyBro (1088 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!