Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3507 Members - Latest Member: Edgebteme

26. May 2012, 05:46:01 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)XIN examples
Pages: [1] 2
Print
Author Topic: XIN examples  (Read 3457 times)
mizar
Just dropped in

Offline Offline

Posts: 2


View Profile
« on: 05. December 2006, 10:29:45 am »

Hi. I'm new to xith3d framework. I downloaded the latest version present on the official site (0.8.0) and i downloaded also the XIN document.

That doc assert i need a version 'greater than 0.8.0' and in facts, most of examples does not compile, or to get them working i have to search alternative method names or some workaround.

So i decided to download the svn versions with the aid of subclipse. My first question is : is that version compatible with the XIN version ? And what's the difference between xith3d and xithTK repositories ?

Anyway i compiled xith3d svn version, but the results are the same when compiling the examples from XIN doc.
Thanks.

Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 05. December 2006, 11:38:59 am »

Hi. I'm new to xith3d framework. I downloaded the latest version present on the official site (0.8.0) and i downloaded also the XIN document.

That doc assert i need a version 'greater than 0.8.0' and in facts, most of examples does not compile, or to get them working i have to search alternative method names or some workaround.

So i decided to download the svn versions with the aid of subclipse.

We did not release a new version for a longer time and very much has been done to xith's codebase. You did exactly correct by checking out the SVN repositories for xith3d and xith-tk. I think, it won't be long until we can realease some kind of new beta release.

My first question is : is that version compatible with the XIN version ?

The current SVN should be 99% compatible with XIN. Please tell me, which code example does not compile, and I'll fix it in XIN. I know the model loaders do not compile as described, but the only difference is, that the method now names loadModel() instead of load(). And the HUD should be differently inserted to the scenegraph (since three days). I'll change the appropriate sections.

And what's the difference between xith3d and xithTK repositories ?

Xith3d is the engine itself and xith-tk offers more functionality not directly needed but very convenient like model loaders, wrapper classes, HUD, etc...

Anyway i compiled xith3d svn version, but the results are the same when compiling the examples from XIN doc.

Please tell me, which examples don't work. I'll fix them. But most of them should.

Marvin
Logged
mizar
Just dropped in

Offline Offline

Posts: 2


View Profile
« Reply #2 on: 05. December 2006, 01:10:03 pm »

OH, so you said that i'm in the right direction. So i tried again to recompile jars and i discovered that also xith-tk and xith-demos were important.

I thought that only recompiling xith3d.jar was sufficient, but i saw that some method were moved from one jar to another.

Thanks anyway. At the moment i recompiled succesfully the xith3d.jar, xith-tk.jar and xith-demos.jar from svn versions. All works perfectly now and sorry for the time spent to read my useless questions.

I asked because nothing sounds official and i'm afraid to be wrong every time, same as on jme, but your work seems more stable.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 05. December 2006, 08:13:07 pm »

Hi Mizar, welcome to Xith3D boards !

Yes xith toolkit is really important. Of those who use Xith3d I don't know any besides Yuri VI. Guschin who don't use the toolkit.

I asked because nothing sounds official and i'm afraid to be wrong every time, same as on jme, but your work seems more stable.
There's absolutely no problem to ask questions, please ask for everything you need, actually it's the way it works.
Logged
Phill
Just dropped in

Offline Offline

Posts: 2


View Profile
« Reply #4 on: 11. December 2006, 01:40:59 am »

Hi,

I am also new to Xith3D. I would like to put my 3D environment into a java applet or java application using Xith3D. The examples convinced me that programing in Xith3D should be interesting and the results would be great.

First, I copied all native libraries and then all java libraries into the folder "Prop.java" indicated me, as described here: http://www.xith.org/pages/installing_xith3d.html Discovering the correct paths.
From the XIN document, I took the EmptyScene example as it is at page 9 at bottom. Soon, I realized the com/org problem, after I read this useful thread. Consequently, I downloaded the newest xith3D/trunk and xith-tk/trunk from svn and compiled the xith3d/src and the xith-tk/toolkit/src using Eclipse 3.2. on Windows XP SP2.
 Within the IDE, I exported the first source as a new xith3d.jar and the second source as a new xith-tk.jar library. I used the "add external jar(s)" function in Eclipse to add these libraries to my build (=class)path.

In each example code, I had to add the relevant import statements. I even had success with HelloXith3D.java, after some work-around:

Code:
import javax.vecmath.*;

// Xith3D
import org.xith3d.scenegraph.*;
import org.xith3d.test.*;

// use Jogl
import org.xith3d.geometry.Cube;
import org.xith3d.render.*;
import org.xith3d.render.jsr231.*;
import org.xith3d.render.lwjgl.RenderPeerImpl;

/**
* Simple Hello-World-application, displaying a single cube.
*
* @author Jens Lehmann
*/
public class HelloXith3D
{
/**
* Starts the application.
*
* @param args command line parameters
*/
public static void main(String[] args)
{
new HelloXith3D();
}

/**
* Draws a cube.
*/
public HelloXith3D()
{
// create the virtual univers
VirtualUniverse universe = new VirtualUniverse();

// add a view to the universe
View view = new View();
universe.addView(view);

// add a locale
Locale locale = new Locale(5.0f, 0.0f, 10.0f);
universe.addLocale(locale);

// create a BranchGroup
BranchGroup scene = new BranchGroup();
locale.addBranchGraph(scene);

// let objects along this path rotate
Transform3D rotate = new Transform3D();
rotate.rotXYZ((float)Math.PI/4,
(float)Math.PI/5,
(float)Math.PI/2);
TransformGroup objRotate = new TransformGroup(rotate);
scene.addChild(objRotate);

// create Cube
Geometry geo = new Cube(0, 0, 0, 1, true).getGeometry();
Shape3D sh = new Shape3D(geo, new Appearance());
objRotate.addChild(sh);

// turn the scene into a render friendly format
// scene.compile();

// create a canvas for our graphics
RenderPeer rp = new RenderPeerImpl();
CanvasPeer cp = rp.makeCanvas(null, 640, 480, 32, false);
Canvas3D canvas = new Canvas3D();
canvas.set3DPeer(cp);

// modify our view so we can see the cube
view.addCanvas3D(canvas);
view.getTransform().lookAt(
new Vector3f(0, 0,    2f),    // location of eye
new Vector3f( 0, 0, 0),    // center of view
new Vector3f( 0, 1, 0));    // vector pointing up
// view.startView();
}
}


problem1 here: it shows the black window, but only for half a second (-DXITH3D_USE_VERTEX_BUFFER_CACHING=FALSE doesn't help).

Then, I tried EmptyScene.java:

Code:
import org.xith3d.render.base.*;
import org.xith3d.render.canvas.*;
import org.xith3d.render.canvas.Canvas3DWrapper.*;
import org.xith3d.render.loop.*;

public class EmptyScene extends RenderLoop {
public EmptyScene()
{
super ( 128L );

Xith3DEnvironment env = new Xith3DEnvironment( this );

env.addCanvas( Canvas3DWrapper.createStandalone(
Resolution.RES_800X600,
"My empty scene" ));
this.begin();
}
public static void main(String[] args) {

new EmptyScene();

}
}

problem2:
When I use jdk1.5.0_10:

2.1: Nvidia Example (Jogl)
http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/ProceduralTexturePhysics.jnlp
does not work,
2.2: JavaApplet (Jogl)
https://jogl-demos.dev.java.net/applettest.html
does not work,

2.3: Water Simulation http://users.xith.org/JavaCoolDude/JWS/Xith3D/Water/WaterSimulation.jnlp
does not work:
Code:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: com.xith3d.datatypes.MatrixExt4f.setTranslation(Ljavax/vecmath/Vector3f;)V
at com.xith3d.scenegraph.Transform3D.setTranslation(Transform3D.java:386)
at WaterSimulation.scene(WaterSimulation.java:126)
at WaterSimulation.<init>(WaterSimulation.java:76)
at WaterSimulation.main(WaterSimulation.java:46)
... 11 more


2.4: EmptyScene.java (from above) does not work, although Eclipse shows no errors within the file (successfully compiled, but runtime error):
Code:
Exception in thread "main" javax.media.opengl.GLException: java.lang.reflect.InvocationTargetException
at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:352)
at javax.media.opengl.GLCanvas.addNotify(GLCanvas.java:154)
at java.awt.Container.addNotify(Unknown Source)
at java.awt.Window.addNotify(Unknown Source)
at java.awt.Frame.addNotify(Unknown Source)
at java.awt.Window.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at org.xith3d.render.jsr231.RenderPeerAWTImpl.makeCanvas(RenderPeerAWTImpl.java:137)
at org.xith3d.render.jsr231.RenderPeerAWTImpl.makeCanvas(RenderPeerAWTImpl.java:107)
at org.xith3d.render.jsr231.RenderPeerAWTImpl.makeCanvas(RenderPeerAWTImpl.java:92)
at org.xith3d.render.canvas.Canvas3DWrapper.<init>(Canvas3DWrapper.java:628)
at org.xith3d.render.canvas.Canvas3DWrapper.<init>(Canvas3DWrapper.java:702)
at org.xith3d.render.canvas.Canvas3DWrapper.<init>(Canvas3DWrapper.java:862)
at org.xith3d.render.canvas.Canvas3DWrapper.createStandalone(Canvas3DWrapper.java:1025)
at EmptyScene.<init>(EmptyScene.java:13)
at EmptyScene.main(EmptyScene.java:20)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:350)
... 16 more
Caused by: java.lang.UnsatisfiedLinkError: disableNativeBackgroundErase
at sun.awt.windows.WCanvasPeer.disableNativeBackgroundErase(Native Method)
at sun.awt.windows.WCanvasPeer.disableBackgroundErase(Unknown Source)
at sun.awt.windows.WToolkit.disableBackgroundErase(Unknown Source)
... 21 more
problem3:
When I use j2sdk1.4.2_13 (Java Compiler compliance 1.4 instead of 5.0),
I get a "unsupported class version error":
in HelloXith3D.java:
Code:
java.lang.UnsupportedClassVersionError: org/xith3d/scenegraph/Node (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Exception in thread "main"
in EmptyScene.java, it's the same error type, nearly the same error.

I found no help for those issues online and I tried a lot myself, the whole day, but I am finally confused. Huh
That's why it would be great if you have got some idea considering this errors I got.
I hope this is not too much at once! 

thanks & keep on developing,  Smiley
Phill




Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 11. December 2006, 04:37:06 am »

Hi, Phil

Welcome to the Xith3D board Smiley.

I am also new to Xith3D. I would like to put my 3D environment into a java applet or java application using Xith3D. The examples convinced me that programing in Xith3D should be interesting and the results would be great.

Good to hear that.

When you're developing with the current SVN it is advisable to not compile the sources into jars, but link the projects. As you can see in the xith-tk eclipse project in project properties (Java Build Path), there's the xith3d project linked. Do this for xith3d and xith-tk in your own project, and you will always use the current source in your project without repackaging them into a jar. Additionally you can see in xith-tk eclipse project which libs need to be included.

In each example code, I had to add the relevant import statements. I even had success with HelloXith3D.java, after some work-around:

Yes. I hope you had no problems to find out, which one to import. Should be distinct, is it?

Xith3D needs Java 1.5. It won't compile without it. I used it successfully with 1.5.6, 1.5.7, 1.5.9 and 1.5.10. Never tried it with 1.4, but it will certainly cause those errors you're facing.

I know, I haven't answered all your questions. But maybe someone else can and will. I hope I could help you with what I was able to say. Maybe tomorrow I have some other ideas.

Marvin
Logged
Phill
Just dropped in

Offline Offline

Posts: 2


View Profile
« Reply #6 on: 11. December 2006, 08:34:49 pm »

Hi,
thank you a lot for that fast and useful reply.

This morning, I could fix the problem, and I am very glad because now everything works and I am ready to start enjoying the world of Xith3D  Cool.

I set everything up according to your answer. The .project is a good way to have the most current source and see the dependent libraries, that's how I'll do it in future. However, I was used to the other method.
 
This morning, I experienced that other computers had no problems with the tasks and examples I described above, using JDK 1.5.10. But my system just always showed that GLException...
Finally, I decided to remove JDK 1.5.10 and install JDK 1.5.8 a friend had testet on another machine before, and everything worked fine, hah :-), never thought of a version bug like that before! Well, it might have been any incompatibility with my graphics driver, but I am glad that Xith3D works now.

I am ready to start now with the complete XIN  Wink.
As I mentioned, I am very interested in creating a JavaApplet from my 3D environment. Do you have any hints for me for this task or are there some cool examples online?

Phill



Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 11. December 2006, 09:19:12 pm »

Good to know, that I could help and that everything is working fine for you Smiley.

I am ready to start now with the complete XIN  Wink.
As I mentioned, I am very interested in creating a JavaApplet from my 3D environment. Do you have any hints for me for this task or are there some cool examples online?

Yes, there are. But I don't remember the links. Let's wait until someone else reads this thread and could help you.

Unfortunately I've never written an Applet, but if I remember right from a friends program, you only have to extend the Applet class and place regular Swing components on it. If this is correct, then Canvas3DPanel is your friend, which is anm AWT panel extension being the owner of an OpenGL Canvas. And from that point on everything should be business as usual... well, I hope Wink.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #8 on: 12. December 2006, 05:13:32 pm »

This morning, I could fix the problem, and I am very glad because now everything works and I am ready to start enjoying the world of Xith3D  Cool.
Welcome (sorry I'm a bit late) to Xith3D world Smiley Pleased to see you enjoy it. Don't hesitate asking any questions.

As I mentioned, I am very interested in creating a JavaApplet from my 3D environment. Do you have any hints for me for this task or are there some cool examples online?
Well, you have the dreamed occasion to provide a wonderful example of Xith3D applets ! If I were you, I would take a look at the JOGLAppletLauncher class... and maybe contact c_lilian.. (who implemented).

In any case, please keep us up to date with your work !  Cheesy
Logged
tomc
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #9 on: 09. February 2007, 06:25:28 pm »

Hello all.

I've just set up the environment here as well, and I'm getting the
same kind of errors, on runtime.  I tried Phill's HelloXith3D,
and EmptyScene, with the same results.

I've recompiled the xith-tk, xith3d, and xith-test libraries
and used those (separate) JAR files to run the tests, with
the same results. 
Has anyone come up with the answer for the error:

Exception in thread "main" javax.media.opengl.GLException: java.lang.reflect.Inv
ocationTargetException
        at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:352)
        at javax.media.opengl.GLCanvas.addNotify(GLCanvas.java:154)
        at java.awt.Container.addNotify(Unknown Source)
        at java.awt.Window.addNotify(Unknown Source)
        at java.awt.Frame.addNotify(Unknown Source)
   ......more......

yet ?

I'm running J2SDK 1.5, windows XP SP2, with the JOGL, LWJGL, vecmath-kh,
libraries, etc., from the latest (0.9.0-beta1) Xith distribution.

I'd love to get this working right...it looks like a great library !

Thanks to all.....

Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #10 on: 09. February 2007, 06:58:58 pm »

I'm running J2SDK 1.5, windows XP SP2, with the JOGL, LWJGL, vecmath-kh,
libraries, etc., from the latest (0.9.0-beta1) Xith distribution.

Do you know, that beta1 is not the latest anymore? Yesterday I have released the beta2. Please check it out:

http://www.xith.org/forum/index.php?topic=136.0

Marvin
Logged
tomc
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #11 on: 09. February 2007, 07:55:04 pm »

Marvin:

Thank you for the new version.

I set it up on my machine, copied the source to my development xith-test
directory, and recompiled it (but not xith3d or xith-tk) and ran it,
and I got:

javax.media.opengl.GLException: java.lang.reflect.InvocationTargetException
        at javax.media.opengl.GLCanvas.disableBackgroundErase(GLCanvas.java:352)

        at javax.media.opengl.GLCanvas.addNotify(GLCanvas.java:154)
        at java.awt.Container.addNotify(Unknown Source)
        at java.awt.Window.addNotify(Unknown Source)
        at java.awt.Frame.addNotify(Unknown Source)
        at java.awt.Window.show(Unknown Source)
        at java.awt.Component.show(Unknown Source)
        at java.awt.Component.setVisible(Unknown Source)
        at org.xith3d.render.jsr231.CanvasPeerAWTImpl.<init>(CanvasPeerAWTImpl.j
ava:142)
        at org.xith3d.render.jsr231.RenderPeerAWTImpl.makeCanvas(RenderPeerAWTIm
pl.java:84)
        at org.xith3d.render.jsr231.RenderPeerAWTImpl.makeCanvas(RenderPeerAWTIm
pl.java:108)
        at org.xith3d.render.canvas.Canvas3DWrapper.<init>(Canvas3DWrapper.java:
656)
.......etc.........

I have the newest third-party JAR files in my \j2sdk\jre\lib\ext directory,
and I don't believe I have any conflicts in my classpath.

My cp:

C:\j2sdk\lib;C:\j2sdk\jre\lib;C:\j2sdk\jre\lib\ext;c:\tc5\common\lib;c:\tc5\serv
er\lib;c:\ant\lib;c:\spring\lib;c:\junit\junit-4.1.jar;c:\jsf\lib;c:\facelets\li
b

my batch file to run one of the samples:

@echo off
set TEMPCP=%classpath%;\tc5\common\lib\log4j.jar
rem set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\vecmath.jar;
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xith3d.jar
rem set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\odejava.jar
rem set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\odejava-xith3d.jar
rem set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xith-test.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xith-tk.jar
rem set TEMPCP=%TEMPCP%;..\xith3d\xith3d.jar
rem set TEMPCP=%TEMPCP%;..\xith-tk\xith-tk.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xith-demo.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xith-demos.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\hial.jar
rem set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\vecmath-kh.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\openmali.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\joal.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\jogl.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\lwjgl.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\lwjgl-devil.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\lwjgl-fmod3.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\lwjgl-util.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\whoola_collada_jaxb.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\jaxb-api__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\jaxb-impl__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\jaxb-libs__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\jax-qname__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\relaxngDatatype__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\xsdlib__V1_0_6.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\media.jar
set TEMPCP=%TEMPCP%;\j2sdk\jre\lib\ext\vorbis.jar
set TEMPCP=%TEMPCP%;.\xith-test.jar
@echo on
java -cp %TEMPCP% org/xith3d/test/Xith3DTestLauncher %1

(as you can see, I've tried a few different libs to get this
running....).  I'm running the newly-compiled xith-test.jar
to run the tests.
when i run this with 'benchmark.CubeBenchmark' as the argument, I get
the above stacktrace.......

It appears the trouble is stemming from the JOGL library, since that is
where the exception appears to be coming from. 
It's hard to tell what is going on with the 'java.lang.reflect.InvocationTargetException', since the source is not
available.  I did make sure the jogl.jar file is the one from the beta2
package, the date on it is January 10, 2007, so it appears to be the
most recent.
Do you think that maybe re-compiling xith3d and xith-tk on my own
machine may make some difference ?

Thanks again......
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #12 on: 09. February 2007, 08:07:14 pm »

Did you already try it with LWJGL?

Recompiling could make a difference. I'm working with Java 6 and used Java 1.5.0_10 to compile the source for the new release to make sure, that it is compatible with Java 5. But maybe I made a mistake.

Please report, if it made any difference.

Marvin
Logged
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« Reply #13 on: 09. February 2007, 08:11:44 pm »

It appears the trouble is stemming from the JOGL library, since that is
where the exception appears to be coming from. 
It's hard to tell what is going on with the 'java.lang.reflect.InvocationTargetException', since the source is not
available.  I did make sure the jogl.jar file is the one from the beta2
package, the date on it is January 10, 2007, so it appears to be the
most recent.
Do you think that maybe re-compiling xith3d and xith-tk on my own
machine may make some difference ?

I don't see any native jogl libraries on your class path. For jogl you need need both the jogl.jar and the native libaries that go with it. The third-party\jogl folder should have sub folders for windows, linux, solaris, and macosx. Chose the appropriate folder for your OS and include the natives inside of it in the class path. (If you use the solaris or macosx natives you might have to extract them from the *.jar files they come in)
Logged

"I like my method, what was my method again?" - Jon
tomc
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #14 on: 09. February 2007, 08:30:51 pm »

Marvin:

I put the native (DLL) files into my /windows/system32 folder,
since that is where I understand most DLL files should go (?).
In your experience, should they be put into the classpath ?
I thought DLLs were called by windows, not the JVM.....?

I did recompile xith3d and xith-tk and got the same error.

So, I decided to back-rev jogl to see if that made a difference.
I used the one from 2006-06-08, got same error.
I tried the one from 2005-06-24, got error that GLEventListener
was not found.

So, I seem to be back to square one.
On a whim, I tried the download from 2007-01-23, that has
the jogl.jar and the gluegen-rt.jar, ran a test with the
HelloXith3D and it did run, but only stayed on the screen for
a fraction of a second.  I ran EmptyScene, and after adding the
glugen-rt.jar to TEMPCP, the program ran, but only for a fraction
of a second.
So, I tried one of the tests in your lib (benchmark.CubeBenchmark),
and got:
CubeBenchmark started to last for 30 seconds. (Hit ESC to cancel.)
....but the window still closed after a fraction of a second.

....so anyway, this is progress !!!

I'll play with it more and let you know.
Thx.....
Logged
Pages: [1] 2
Print
Jump to:  

Theme orange-lt created by panic