Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Java Game APIs & Engines / JOGL Development / Re: Simple rotation and translation order question! on: 2007-09-13 22:26:45
Ok, I get it now, thanks!
2  Java Game APIs & Engines / JOGL Development / Simple rotation and translation order question! on: 2007-09-13 10:49:21
Hi,

I've made a 3D world, and in order to view that world from the right position and angle, I use the following:

1  
2  
3  
4  
gl.glLoadIdentity();
Matrix lookAt = Matrix.lookAt(direction,up);
gl.glMultMatrixd(lookAt.columnMajor(),0);
gl.glTranslated(-position.x,-position.y,-position.z);


Which works perfectly well.

However, it seems to me that this appears to be the wrong way around, and that I should really be translating the world so that the viewing position is at the origin, and then rotating the world in the correct direction, ie. translation and then rotation, instead of rotation then translation.

I'm sure I'm just missing something really obvious, but can anyone explain what's going on?

Cheers,
Chris.
3  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-07-03 09:33:59
Hmm, things like that used to happen 2 years ago with old ATI cards (or drivers). are you using one of these ?

Lilian Smiley

Hello,
Apologies for the late reply. It seems like that was indeed the problem.
My laptop manufacturer is pretty useless when it comes to releasing new drivers so mine were about 2 years old. Installing the latest Catalyst drivers with Mobility Modder fixed the problem.
Cheers,
Chris.
4  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-06 17:22:53
(And the same thing happens in IE too)
5  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-06 17:19:30
Yes, possibly something like that is happening.
I have got slightly further now though. I've managed to get my app running in Firefox. This time the app runs at approx. the right speed (a bit slow, but not too bad, say 80% frame rate), however it only does this for about a second, then it pauses for a few seconds, then runs for a second etc etc.
All very strange!!
6  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-06 15:17:53
Just as another addition to the discussion:
I've now got my own app running as an applet through the eclipse applet viewer and have exactly the same problem. It runs at about 75% the frame rate it would as a standalone app and as soon as I put the mouse over the window the frame rate drops to about 10% that of a standalone app. Strange...
7  Java Game APIs & Engines / JOGL Development / Re: Errors on Linux / ATI on: 2007-06-06 14:26:10
Apologies for the delayed reply! It may be worth getting in touch with ATI's linux drivers program. I'll send you and email and you can send me the relevant details.
Cheers,
Chris.
8  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-06 14:20:41
Yes, I did. I'm pretty sure I don't have talkback enabled/installed - although I'm not 100% sure how to check this! I'm using Firefox 2 and I though it was in "Add-ons" and it certainly isn't there in my browser. Also I have no talkback.exe.
Let me know if I'm missing something.
9  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-05 14:44:24
Ok, it sounds about right that the refresh rate would be dependent on the container app refresh rate. I will definitely make sure that the app logic is separate from the frame refresh.
However, this still doesn't explain why a specified 60fps appears as only around about 10fps, and why if the frame rate is increased then the applet freezes when the mouse is moved over it.
Regarding the problems moving the browser around - well, there's no particular need or reason for the user to do that, but inevitably somebody will! It would be nice if the entire window didn't freeze and drag around very slowly!

10  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-05 10:22:11
I just tried running https://jogl-demos.dev.java.net/applettest.html through firefox and I am seeing pretty much the same thing. The applet runs quite slowly - eg around 10 fps (when running the non-applet version the frame rate is around 150 fps) and when I move the browser around there are long pauses in the applet and the window movement is very slow.
Is there anything that can be done about this?
Cheers.
11  Java Game APIs & Engines / JOGL Development / Re: JOGL Applets and JOGLAppletLauncher on: 2007-06-05 10:13:43
Hi,

Thanks for your help. I've got the Gears applet working now, so I should be able to work most things out from there. I have a couple of questions though:

I'm running the gears applet through the Eclipse applet viewer. The FPSAnimator is set to 60fps, but I noticed the applet seemed to run very slow (looks like much less than 60 fps, more like about 15). I increased the FPS to 100 which sped things up a bit (now looks more like 60fps), but now every time i move the mouse over the window, the animation will pause until I remove the mouse from the window. Also, irrespective of the FPS value, whenever I moved the window there is a long pause before things start working again. The window also moves very slowly and the CPU goes up to 100%.

Any ideas on this one? Mabye this is something to do with Eclipse - I shall try running it through a browser as well...

Cheers,
Chris
12  Java Game APIs & Engines / JOGL Development / Re: Slow textures on Radeon X600 on: 2007-06-05 07:50:12
Thanks guys, NPOT was the problem. I wasn't actually checking for the extension as I read somewhere that OpenGL 2 (which I'm using) now supported NPOT, however on checking the extensions string it was not supported. I'm not sure whether REPEAT was working or not as the textures were not intended to repeat anyway.
And it's actually a Mobility X600 - I should have mentioned that.
Cheers,
Chris.
13  Java Game APIs & Engines / JOGL Development / Re: Slow textures on Radeon X600 on: 2007-06-04 22:26:24
I should add that size of the texture is 100 x 100.
14  Java Game APIs & Engines / JOGL Development / Slow textures on Radeon X600 on: 2007-06-04 22:25:00
Hi All,
I've loaded a texture in the following way:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
                ByteBuffer bb = ByteBuffer.wrap(bs);
         
          gl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT,1);
         
          int[] ids = new int[1];
          gl.glGenTextures(1,ids,0);
          int id = ids[0];
          gl.glBindTexture(GL.GL_TEXTURE_2D,id);
          gl.glTexImage2D(
             GL.GL_TEXTURE_2D,0,4,w,h,0,GL.GL_RGBA,GL.GL_UNSIGNED_BYTE,bb);
          gl.glTexParameterf(
             GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S,GL.GL_REPEAT);
          gl.glTexParameterf(
             GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T,GL.GL_REPEAT);
          gl.glTexParameterf(
             GL.GL_TEXTURE_2D,GL.GL_TEXTURE_MAG_FILTER,GL.GL_LINEAR);
          gl.glTexParameterf(
             GL.GL_TEXTURE_2D,GL.GL_TEXTURE_MIN_FILTER,GL.GL_LINEAR);
          gl.glTexEnvf(
             GL.GL_TEXTURE_ENV,GL.GL_TEXTURE_ENV_MODE,GL.GL_MODULATE);


This works fine on a GF 6800, but I have problems on a X600. The texture displays correctly, but rendering is extremely slow - around 5fps for just a few textures. Does anyone know if there's something I'm missing?

Thanks,
Chris
15  Java Game APIs & Engines / JOGL Development / JOGL Applets and JOGLAppletLauncher on: 2007-05-30 14:27:47
Hi all,
I was wondering if anyone could give me a bit of help with JOGL applets. I've been looking on jogl-demos, but I can't really find any good example code for what I'm trying to do. It's fairly basic really: I have a JOGL app that looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
public class Viewer extends Frame implements GLEventListener
{    
   public static void main(String[] args)
    {
       new Viewer();
    }    
   
    public Viewer()
    {
       GLCanvas canvas = new GLCanvas();
        canvas.addGLEventListener(this);
        add(canvas);
        setSize(100,100);
        setLocation(200,0);
        new Animator(canvas).start();
   }

   public void init(GLAutoDrawable drawable)
   {
      GL gl = drawable.getGL();
      gl.glEnable(GL.GL_DEPTH_TEST);
      ...
   }
   
    public void reshape(GLAutoDrawable d, int x, int y, int w, int h)
    {
       GL gl = d.getGL();
        ...
        gl.glViewport(0,0,w,h);
    }
   
    public void display(GLAutoDrawable drawable)
    {
       GL gl = drawable.getGL();
        gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
      ...
   }
}


And I want to convert this into an applet.
Firstly I guess I need to derive Viewer from JOGLAppletLauncher instead of Frame, and then implement init(), start(), stop() and destroy(). My problem is that I don't quite understand how to map what I've got now onto that.
Firstly, I guess that I should attach the canvas in init():

1  
2  
3  
4  
5  
6  
7  
8  
9  
   public void init()
   {
      GLCanvas canvas = new GLCanvas();
        canvas.addGLEventListener(this);
        add(canvas);
        setSize(100,100);
        setLocation(200,0);
        new Animator(canvas).start();
   }


However, when it comes to init(GLAutoDrawable drawable), how should this be implemented, in particular how do I get a reference to the GL object? The same with display() and reshape(), again, how do I access the GL object? I'm also unsure if the Animator will work correctly in this way, maybe not...?

One problem I have is that I'm not getting much debug/output from running the applet through a browser, so it's difficult to know why things aren't working. Has anyone got any tips for doing this?

I'm pretty sure I've got the html correct and the jars are loading etc, but I really just need a few tips on the basic structure of the code just to get me started.

Thanks a lot,

Chris.


16  Java Game APIs & Engines / JOGL Development / Re: Errors on Linux / ATI on: 2007-05-16 21:51:48
Hi there,
I'm using GLCanvas and I wasn't using sun.java2d.opengl. I have just tried using that though and this resulted in a complete VM crash!
I have a feeling the ATI driver might be faulty judging by other things I've read on the web, but it's really just a guess at the moment.
I will let you know if I get anywhere though.
Chris
17  Java Game APIs & Engines / JOGL Development / Errors on Linux / ATI on: 2007-05-12 11:04:28
Hi,

I've written a jogl app that works perfectly well on Windows, but produced loads of these errors on linux:

1  
2  
3  
fglX11AllocateManagedSurface: __FGLTexMgrAllocMem failed!!
fglX11AllocateManagedSurface: __FGLTexMgrAllocMem failed!!
fglX11AllocateManagedSurface: __FGLTexMgrAllocMem failed!!


It's Ubuntu Feisty with an ATI Mobility Radeon X600 and the latest fglrx drivers.

Interestingly, the app still works and displays correctly, however the frame rate is very low, possibly due to these errors.

The first error seems to occur after these calls:

1  
2  
gl.glBindBuffer(GL.GL_ARRAY_BUFFER,index);
gl.glNormalPointer(GL.GL_FLOAT,0,0);


However, these calls are made every frame but the error doesn't occur on every frame, rather every few frames. I've tried running with DebugGL but no Exceptions were thrown.

Anyone have any ideas on this one?

Thanks in advance,

Chris.
18  Java Game APIs & Engines / JOGL Development / Re: Dissappearing mouse events! on: 2007-05-11 16:30:18
No, I hadn't - but that works fine.
Thanks!
19  Java Game APIs & Engines / JOGL Development / Dissappearing mouse events! on: 2007-05-11 15:42:10
Hi,

I'm having a few problems with mouse events. If I create a new Frame then I can trap mouse events 504 and 505 when the mouse moves in and out of the window using processEvent(). However, if I create a Frame and attach a GLCanvas to it, the mouse events appear to be consumed by GLCanvas somehow. At least they never appear in processEvent().

Here's my initialisation for the Frame etc:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
View view = new View(); // View extends Frame
GLCapabilities capabilities = new GLCapabilities();
capabilities.setSampleBuffers(true);
capabilities.setNumSamples(2);
GLCanvas canvas = new GLCanvas(capabilities);
canvas.addGLEventListener(view);
view.add(canvas);
view.setSize(100,100);
view.pack();
view.setVisible(true);
view.setLocation(200,0);
final Animator animator = new Animator(canvas);
view.setVisible(true);
animator.start();


If I comment out the line

1  
//view.add(canvas);


then the mouse events appear correctly.

Does anyone know if there is a way to trap these events, or perhaps I'm am doing something wrong in the setup?
Ultimately, I want to be able to detect if the mouse is in the window or not and only respond to mouse movement if it is. Does anyone know if I'm going about this the right way?

Thanks in advance,
Chris.
20  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-10 20:06:39
Thanks Endolf,

I didn't realise that there was an auto-detect for the plugin, which is why I thought I needed the controller directory. That's explained it all though, and it's working fine now. I guess isSupportedOnThisPlatform() would be useful though as multi-platform support is quite common these days.

Cheers,
Chris.
21  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-10 09:51:35
Hi Endolf,

I was running this with my own classes and through Eclipse, so there is no run command as such. However, I've since done some more tests at the command line with jinput-test. Here's the results...

Here's my setup:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
E:\test>dir /s
 Volume in drive E is Local Disk
 Volume Serial Number is 5CF4-E1DF

 Directory of E:\test

10/05/2007  10:33    <DIR>          .
10/05/2007  10:33    <DIR>          ..
10/05/2007  10:46    <DIR>          controller
29/10/2006  19:12            21,048 jinput-test.jar
               1 File(s)         21,048 bytes

 Directory of E:\test\controller

10/05/2007  10:46    <DIR>          .
10/05/2007  10:46    <DIR>          ..
29/10/2006  20:31            73,728 jinput-dx8.dll
29/10/2006  20:31            69,632 jinput-raw.dll
29/10/2006  19:12            21,048 jinput-test.jar
29/10/2006  20:31            69,632 jinput-wintab.dll
29/10/2006  20:31           196,436 jinput.jar
29/10/2006  19:12            10,204 libjinput-linux.so
29/10/2006  19:12            49,016 libjinput-osx.jnilib
               7 File(s)        489,696 bytes

     Total Files Listed:
               8 File(s)        510,744 bytes
               5 Dir(s)  30,457,348,096 bytes free


I've put jinput-test both in the controller directory and the directory above so that I can test it running from different locations.               
If I run the test from the controller directory then all seems well:

1  
2  
3  
E:\test\controller>java -Djava.library.path=. -classpath jinput-test.jar;jinput.jar net.java.games.input.test.ControllerReadTest
Component count = 6
Component count = 126


However, if I run the test from another directory I get all kinds of extra debug, various link errors and more listed components:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
E:\test>java -Djava.library.path=controller -classpath jinput-test.jar;controller\jinput.jar net.java.games.input.test.ControllerReadTest
Scanning jar: jinput-test.jar
Examining file : META-INF/
Examining file : META-INF/MANIFEST.MF
Examining file : net/
Examining file : net/java/
Examining file : net/java/games/
-- snip --
ControllerEnvironment net.java.games.input.LinuxEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@11b86e7
Failed to load 64 bit library: no jinput-linux64 in java.library.path
java.lang.UnsatisfiedLinkError: no jinput-linux in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.java.games.input.DefaultControllerEnvironment.loadLibrary(DefaultControllerEnvironment.java:80)
-- snip --
Component count = 110
Component count = 6
Component count = 6
Component count = 126
Component count = 114
Component count = 6


This is basically what was happening when I was running with Eclipse. Do you know why the behaviour should be so different? Am I doing something wrong?
Even though I get all these errors, the test app does actually seem to run without any other problems.
Is there anything I can do to get things to run a bit more smoothly?

Thanks a lot,
Chris.
22  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 14:26:33
I've just tried this in Windows with pretty much the same result. A load of linker errors and 6 controllers (where there should be 2).
Any ideas?

ControllerEnvironment net.java.games.input.LinuxEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
Failed to load 64 bit library: no jinput-linux64 in java.library.path
java.lang.UnsatisfiedLinkError: no jinput-linux in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)


ControllerEnvironment net.java.games.input.OSXEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
java.lang.UnsatisfiedLinkError: no jinput-osx in java.library.path
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)


ControllerEnvironment net.java.games.input.AWTEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
   at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:123)
   at InspectionVehicle.<init>(InspectionVehicle.java:25)
   at View.main(View.java:197)

ControllerEnvironment net.java.games.input.DirectInputEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
ControllerEnvironment net.java.games.input.RawInputEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
ControllerEnvironment net.java.games.input.WinTabEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@e39a3e
java.lang.UnsatisfiedLinkError: E:\iain\VirtualResort2\ResortViewer\dll\jinput-wintab.dll: Can't find dependent libraries
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)


Found 6 controllers.
Keyboard found.
Mouse found.
Mouse found.
Keyboard found.
Keyboard found.
Mouse found.
23  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:18:39
ControllerEnvironment net.java.games.input.DirectInputEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e
ControllerEnvironment net.java.games.input.RawInputEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e
ControllerEnvironment net.java.games.input.WinTabEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java :27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at net.java.games.input.DefaultControllerEnvironment.scanControllersAt (DefaultControllerEnvironment.java:201)
    at net.java.games.input.DefaultControllerEnvironment.scanControllers(DefaultControllerEnvironment.java:184)
    at net.java.games.input.DefaultControllerEnvironment.access$000 (DefaultControllerEnvironment.java:59)
    at net.java.games.input.DefaultControllerEnvironment$4.run(DefaultControllerEnvironment.java:125)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:123)
    at InspectionVehicle.<init>(InspectionVehicle.java:25)
    at View.main(View.java:197)

Found 8 controllers.
Found keyboard.
Found keyboard.
Found keyboard.
Mouse found.
Found keyboard.
Mouse found.
Found keyboard.
Mouse found.
24  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:18:16
awtevent 101java.lang.UnsatisfiedLinkError: no jinput-dx8 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)
    at java.security.AccessController.doPrivileged (Native Method)
    at net.java.games.input.DefaultControllerEnvironment.loadLibrary(DefaultControllerEnvironment.java:80)
    at net.java.games.input.DirectInputEnvironmentPlugin.<clinit>(DirectInputEnvironmentPlugin.java :56)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java :308)
    at net.java.games.input.DefaultControllerEnvironment.scanControllersAt(DefaultControllerEnvironment.java:201)
    at net.java.games.input.DefaultControllerEnvironment.scanControllers(DefaultControllerEnvironment.java :184)
    at net.java.games.input.DefaultControllerEnvironment.access$000(DefaultControllerEnvironment.java:59)
    at net.java.games.input.DefaultControllerEnvironment$4.run(DefaultControllerEnvironment.java:125)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:123)
    at InspectionVehicle.<init>( InspectionVehicle.java:25)
    at View.main(View.java:197)
java.lang.UnsatisfiedLinkError: no jinput-raw in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0 (Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)
    at java.security.AccessController.doPrivileged (Native Method)
    at net.java.games.input.DefaultControllerEnvironment.loadLibrary(DefaultControllerEnvironment.java:80)
    at net.java.games.input.RawInputEnvironmentPlugin.<clinit>(RawInputEnvironmentPlugin.java :56)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java :308)
    at net.java.games.input.DefaultControllerEnvironment.scanControllersAt(DefaultControllerEnvironment.java:201)
    at net.java.games.input.DefaultControllerEnvironment.scanControllers(DefaultControllerEnvironment.java :184)
    at net.java.games.input.DefaultControllerEnvironment.access$000(DefaultControllerEnvironment.java:59)
    at net.java.games.input.DefaultControllerEnvironment$4.run(DefaultControllerEnvironment.java:125)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:123)
    at InspectionVehicle.<init>( InspectionVehicle.java:25)
    at View.main(View.java:197)
java.lang.UnsatisfiedLinkError: no jinput-wintab in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0 (Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:87)
    at java.security.AccessController.doPrivileged (Native Method)
    at net.java.games.input.DefaultControllerEnvironment.loadLibrary(DefaultControllerEnvironment.java:80)
    at net.java.games.input.WinTabEnvironmentPlugin.<clinit>(WinTabEnvironmentPlugin.java :13)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
25  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:18:02
Examining file : net/java/games/input/WinTabDevice.class
Examining file : net/java/games/input/WinTabEnvironmentPlugin$1.class
Examining file : net/java/games/input/WinTabEnvironmentPlugin$ShutdownHook.class
Examining file : net/java/games/input/WinTabEnvironmentPlugin.class
Found candidate class: net/java/games/input/WinTabEnvironmentPlugin.class
Adding class to plugins:net.java.games.input.WinTabEnvironmentPlugin
Examining file : net/java/games/input/WinTabPacket.class
Examining file : net/java/games/util/
Examining file : net/java/games/util/Version.class
Examining file : net/java/games/util/plugins/
Examining file : net/java/games/util/plugins/Plugin.class
Found candidate class: net/java/games/util/plugins/Plugin.class
Examining file : net/java/games/util/plugins/PluginLoader.class
Examining file : net/java/games/util/plugins/Plugins.class
Examining file : net/java/games/util/plugins/test/
Examining file : net/java/games/util/plugins/test/ClassRenderer.class
Examining file : net/java/games/util/plugins/test/ListUpdater.class
Examining file : net/java/games/util/plugins/test/PluginTest.class
ControllerEnvironment net.java.games.input.LinuxEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e

awtevent 102Linux plugin claims to have found 6 controllers
ControllerEnvironment net.java.games.input.OSXEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e
java.lang.UnsatisfiedLinkError: no jinput-osx in java.library.pathControllerEnvironment net.java.games.input.AWTEnvironmentPlugin loaded by sun.misc.Launcher$AppClassLoader@7d772e

    at java.lang.ClassLoader.loadLibrary (ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java :87)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.java.games.input.DefaultControllerEnvironment.loadLibrary(DefaultControllerEnvironment.java:80)
    at net.java.games.input.OSXEnvironmentPlugin .<clinit>(OSXEnvironmentPlugin.java:59)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java :39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0 (Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at net.java.games.input.DefaultControllerEnvironment.scanControllersAt(DefaultControllerEnvironment.java:201)
    at net.java.games.input.DefaultControllerEnvironment.scanControllers (DefaultControllerEnvironment.java:184)
    at net.java.games.input.DefaultControllerEnvironment.access$000(DefaultControllerEnvironment.java:59)
    at net.java.games.input.DefaultControllerEnvironment$4.run(DefaultControllerEnvironment.java :125)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:123)
    at InspectionVehicle.<init>( InspectionVehicle.java:25)
    at View.main(View.java:197)
26  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:17:44
Examining file : net/java/games/input/UsagePair.class
Examining file : net/java/games/input/AWTEnvironmentPlugin.class
Found candidate class: net/java/games/input/AWTEnvironmentPlugin.class
Adding class to plugins: net.java.games.input.AWTEnvironmentPlugin
Examining file : net/java/games/input/AWTKeyMap.class
Examining file : net/java/games/input/AWTKeyboard$Key.class
Examining file : net/java/games/input/AWTKeyboard.class
Examining file : net/java/games/input/AWTMouse$Axis.class
Examining file : net/java/games/input/AWTMouse$Button.class
Examining file : net/java/games/input/AWTMouse.class
Examining file : net/java/games/input/DIAbstractController.class
Examining file : net/java/games/input/DIComponent.class
Examining file : net/java/games/input/DIControllers.class
Examining file : net/java/games/input/DIDeviceObject.class
Examining file : net/java/games/input/DIDeviceObjectData.class
Examining file : net/java/games/input/DIEffectInfo.class
Examining file : net/java/games/input/DIIdentifierMap.class
Examining file : net/java/games/input/DIKeyboard.class
Examining file : net/java/games/input/DIMouse.class
Examining file : net/java/games/input/DataQueue.class
Examining file : net/java/games/input/DirectInputEnvironmentPlugin$1.class
Examining file : net/java/games/input/DirectInputEnvironmentPlugin$ShutdownHook.class
Examining file : net/java/games/input/DirectInputEnvironmentPlugin.class
Found candidate class: net/java/games/input/DirectInputEnvironmentPlugin.class
Adding class to plugins:net.java.games.input.DirectInputEnvironmentPlugin
Examining file : net/java/games/input/DummyWindow.class
Examining file : net/java/games/input/IDirectInput.class
Examining file : net/java/games/input/IDirectInputDevice.class
Examining file : net/java/games/input/IDirectInputEffect.class
Examining file : net/java/games/input/RawDevice.class
Examining file : net/java/games/input/RawDeviceInfo.class
Examining file : net/java/games/input/RawHIDInfo.class
Examining file : net/java/games/input/RawIdentifierMap.class
Examining file : net/java/games/input/RawInputEnvironmentPlugin.class
Found candidate class: net/java/games/input/RawInputEnvironmentPlugin.class
Adding class to plugins:net.java.games.input.RawInputEnvironmentPlugin
Examining file : net/java/games/input/RawInputEventQueue$QueueThread.class
Examining file : net/java/games/input/RawInputEventQueue.class
Examining file : net/java/games/input/RawKeyboard$Key.class
Examining file : net/java/games/input/RawKeyboard.class
Examining file : net/java/games/input/RawKeyboardEvent.class
Examining file : net/java/games/input/RawKeyboardInfo.class
Examining file : net/java/games/input/RawMouse$Axis.class
Examining file : net/java/games/input/RawMouse$Button.class
Examining file : net/java/games/input/RawMouse.class
Examining file : net/java/games/input/RawMouseEvent.class
Examining file : net/java/games/input/RawMouseInfo.class
Examining file : net/java/games/input/SetupAPIDevice.class
Examining file : net/java/games/input/WinTabButtonComponent.class
Examining file : net/java/games/input/WinTabComponent.class
Examining file : net/java/games/input/WinTabContext.class
Examining file : net/java/games/input/WinTabCursorComponent.class
27  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:17:21
Examining file : net/java/games/input/LinuxDeviceTask.class
Examining file : net/java/games/input/LinuxDeviceThread.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$1.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$2.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$3.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$4.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$5.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin$ShutdownHook.class
Examining file : net/java/games/input/LinuxEnvironmentPlugin.class
Found candidate class: net/java/games/input/LinuxEnvironmentPlugin.class
Adding class to plugins:net.java.games.input.LinuxEnvironmentPlugin
Examining file : net/java/games/input/LinuxEvent.class
Examining file : net/java/games/input/LinuxEventComponent.class
Examining file : net/java/games/input/LinuxEventDevice$1.class
Examining file : net/java/games/input/LinuxEventDevice.class
Examining file : net/java/games/input/LinuxForceFeedbackEffect$1.class
Examining file : net/java/games/input/LinuxForceFeedbackEffect$UploadTask.class
Examining file : net/java/games/input/LinuxForceFeedbackEffect$WriteTask.class
Examining file : net/java/games/input/LinuxForceFeedbackEffect.class
Examining file : net/java/games/input/LinuxInputID.class
Examining file : net/java/games/input/LinuxJoystickAbstractController.class
Examining file : net/java/games/input/LinuxJoystickAxis.class
Examining file : net/java/games/input/LinuxJoystickButton.class
Examining file : net/java/games/input/LinuxJoystickDevice.class
Examining file : net/java/games/input/LinuxJoystickEvent.class
Examining file : net/java/games/input/LinuxKeyboard.class
Examining file : net/java/games/input/LinuxMouse.class
Examining file : net/java/games/input/LinuxNativeTypesMap.class
Examining file : net/java/games/input/LinuxPOV.class
Examining file : net/java/games/input/LinuxRumbleFF.class
Examining file : net/java/games/input/NativeDefinitions.class
Examining file : net/java/games/input/ButtonUsage.class
Examining file : net/java/games/input/ElementType.class
Examining file : net/java/games/input/GenericDesktopUsage.class
Examining file : net/java/games/input/KeyboardUsage.class
Examining file : net/java/games/input/OSXAbstractController.class
Examining file : net/java/games/input/OSXComponent.class
Examining file : net/java/games/input/OSXControllers.class
Examining file : net/java/games/input/OSXEnvironmentPlugin.class
Found candidate class: net/java/games/input/OSXEnvironmentPlugin.class
Adding class to plugins:net.java.games.input.OSXEnvironmentPlugin
Examining file : net/java/games/input/OSXEvent.class
Examining file : net/java/games/input/OSXHIDDevice.class
Examining file : net/java/games/input/OSXHIDDeviceIterator.class
Examining file : net/java/games/input/OSXHIDElement.class
Examining file : net/java/games/input/OSXHIDQueue.class
Examining file : net/java/games/input/OSXKeyboard.class
Examining file : net/java/games/input/OSXMouse.class
Examining file : net/java/games/input/Usage.class
Examining file : net/java/games/input/UsagePage.class
28  Java Game APIs & Engines / JInput / Re: Strange linux behaviour on: 2007-05-09 11:17:00
Scanning jar: jinput.jar
Examining file : META-INF/
Examining file : META-INF/MANIFEST.MF
Examining file : net/
Examining file : net/java/
Examining file : net/java/games/
Examining file : net/java/games/input/
Examining file : net/java/games/input/AbstractComponent.class
Examining file : net/java/games/input/AbstractController.class
Examining file : net/java/games/input/Component$Identifier$Axis.class
Examining file : net/java/games/input/Component$Identifier$Button.class
Examining file : net/java/games/input/Component$Identifier$Key.class
Examining file : net/java/games/input/Component$Identifier.class
Examining file : net/java/games/input/Component$POV.class
Examining file : net/java/games/input/Component.class
Examining file : net/java/games/input/Controller$PortType.class
Examining file : net/java/games/input/Controller$Type.class
Examining file : net/java/games/input/Controller.class
Examining file : net/java/games/input/ControllerEnvironment.class
Examining file : net/java/games/input/ControllerEvent.class
Examining file : net/java/games/input/ControllerListener.class
Examining file : net/java/games/input/DefaultControllerEnvironment$1.class
Examining file : net/java/games/input/DefaultControllerEnvironment$2.class
Examining file : net/java/games/input/DefaultControllerEnvironment$3.class
Examining file : net/java/games/input/DefaultControllerEnvironment$4.class
Examining file : net/java/games/input/DefaultControllerEnvironment.class
Examining file : net/java/games/input/Event.class
Examining file : net/java/games/input/EventQueue.class
Examining file : net/java/games/input/Keyboard.class
Examining file : net/java/games/input/Mouse.class
Examining file : net/java/games/input/PluginClassLoader$1.class
Examining file : net/java/games/input/PluginClassLoader$JarFileFilter.class
Examining file : net/java/games/input/PluginClassLoader.class
Examining file : net/java/games/input/Rumbler.class
Examining file : net/java/games/input/Version.class
Examining file : net/java/games/input/LinuxAbsInfo.class
Examining file : net/java/games/input/LinuxAbstractController.class
Examining file : net/java/games/input/LinuxAxisDescriptor.class
Examining file : net/java/games/input/LinuxComponent.class
Examining file : net/java/games/input/LinuxConstantFF.class
Examining file : net/java/games/input/LinuxControllers.class
Examining file : net/java/games/input/LinuxDevice.class
29  Java Game APIs & Engines / JInput / Strange linux behaviour on: 2007-05-09 11:11:54
Hi there,
I'm trying to use the combined plugin set on linux, but am running into a few problems. It appears that the linux plugin is loaded correctly, but it then seems to want to try to load the Windows and OSX plugins too. It can't seem to find them (even though they're in the same directory as everything else) and I get the following errors. It does, however seem to get past these errors and continue.
Secondly, it then seems to manage to find 8 controllers (5 keyboards and 3 mice!!).
Can anyone explain to me what is going on here?
Thanks in advance,
Chris.

Debug to follow...
30  Java Game APIs & Engines / JInput / Re: Sealing violation on: 2007-05-09 10:33:09
Don't worry - I've fixed it.
Pages: [1] 2
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (15 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (38 views)
2014-08-06 19:49:38
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!