Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: Hdx on May 15, 2006, 09:47:29 PM

Title: Java 3D
Post by: Hdx on May 15, 2006, 09:47:29 PM
Does anyone know ANYTHING about Java 3d?
I am really interested in making basic 3d aplications.
A basic cube will be <3!
All I could find were applet examples, but no applications, So anyone know anything?
~-~(HDX)~-~
Title: Re: Java 3D
Post by: Newby on May 15, 2006, 10:21:30 PM
Java? 3d? Blllllllllllooooooooooooaaaaaaaaaaaaaaaatttttttteeeeeeeeeeeeeed and slooow.
Title: Re: Java 3D
Post by: Joe on May 15, 2006, 10:37:02 PM
I've heard otherwise, actually.
Title: Re: Java 3D
Post by: MyndFyre on May 15, 2006, 10:56:18 PM
Quote from: Joe on May 15, 2006, 10:37:02 PM
I've heard otherwise, actually.

Java, like .NET/managed languages, will suffer from performance inhibitions caused by being a bytecoded language.  Compilers can do fancy optimization things that an interpreted/JITted language can't.  The other nice thing about using native languages versus an interpreted language is one less level of indirection for objects (which, of course, can be thrown away by doing silly things like using multiple inheritence).

Java in 3D is roughly 30-35% slower than a native application directly accessing the API.
Title: Re: Java 3D
Post by: Hdx on May 15, 2006, 11:35:45 PM
Quote from: MyndFyrex86] link=topic=5887.msg69673#msg69673 date=1147748178]
Java in 3D is roughly 30-35% slower than a native application directly accessing the API.
MM I don't care.
All I will need it to do is load 1 sphere, 1 stick figure, and not even a spacific light source.
I jsut wana learn how to do it, so ya, impart.
~-~(HDX)~-~
Title: Re: Java 3D
Post by: Sidoh on May 15, 2006, 11:40:47 PM
Quote from: HdxBmx27 on May 15, 2006, 11:35:45 PM
MM I don't care.
All I will need it to do is load 1 sphere, 1 stick figure, and not even a spacific light source.
I jsut wana learn how to do it, so ya, impart.
~-~(HDX)~-~

MyndFyre was simply commenting on Joe's response; he wasn't telling you that you shouldn't use it.
Title: Re: Java 3D
Post by: iago on May 16, 2006, 08:14:20 AM
Quote from: MyndFyrex86] link=topic=5887.msg69673#msg69673 date=1147748178]
Quote from: Joe on May 15, 2006, 10:37:02 PM
I've heard otherwise, actually.

Java, like .NET/managed languages, will suffer from performance inhibitions caused by being a bytecoded language.  Compilers can do fancy optimization things that an interpreted/JITted language can't.  The other nice thing about using native languages versus an interpreted language is one less level of indirection for objects (which, of course, can be thrown away by doing silly things like using multiple inheritence).

Java in 3D is roughly 30-35% slower than a native application directly accessing the API.
Do you have a source for that number?  Or is it ooya?  (out of your ass :))

Quote from: HdxBmx27 on May 15, 2006, 09:47:29 PM
Does anyone know ANYTHING about Java 3d?
I am really interested in making basic 3d aplications.
A basic cube will be <3!
All I could find were applet examples, but no applications, So anyone know anything?
~-~(HDX)~-~
They have quite a complete tutorial on Java's website.  I started reading through it, then I realized that I knew nothing about 3d programming and wasn't really willing to learn.  But the tutorial seemed pretty good.  I'm sure it would be easy to find on Java's main site. 
Title: Re: Java 3D
Post by: MyndFyre on May 16, 2006, 02:23:06 PM
Quote from: iago on May 16, 2006, 08:14:20 AM
Do you have a source for that number?  Or is it ooya?  (out of your ass :))

It's from the site that came up the last time we talked about Java and 3D.  I think it was about a game that was ported to Java having performance comparable to MC++.  Quake II, maybe?
Title: Re: Java 3D
Post by: iago on May 16, 2006, 07:46:50 PM
Quake 2 didn't even use Java's 3D API, it made calls directly to native functions. 
Title: Re: Java 3D
Post by: Hdx on May 16, 2006, 10:02:45 PM
Quote from: iago on May 16, 2006, 08:14:20 AM
They have quite a complete tutorial on Java's website.  I started reading through it, then I realized that I knew nothing about 3d programming and wasn't really willing to learn.  But the tutorial seemed pretty good.  I'm sure it would be easy to find on Java's main site. 

mm I found it.
And after 3 hrs of reading it this is what I have ended up with
(http://jbls.org/upload/files/3d.GIF) (Double rotating was annoying -.-)
<3!!!!
Not i'm getting into the more advanced stuff in the tutorial.
~-~(HDX)~-~