Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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]
1  Java Game APIs & Engines / JOGL Development / Re: error: wrong version 48.0, should be 47.0 on: 2003-08-23 11:13:01
Jogl was built using java 2 sdk 1.4 if i am not wrong.

So the minimun requirement would be Java 2 Sdk 1.4 upwards Smiley
2  Java Game APIs & Engines / JOGL Development / Re: Problems on certain systems. on: 2003-07-31 12:14:22
Yes, I think we know that it is running in software mode. And getting proper 3D hardware acceleration does not actually solve the problem.

Does this mean people running Linux without 3D hardware acceleration will have proplems with JOGL? Is there like a minimun specs for JOGL?

I guess i can cut development on my laptop, tats for sure Smiley I have only 8mb of graphics ram!
3  Java Game APIs & Engines / JOGL Development / Re: Impossible GLJPanel on: 2003-07-24 04:11:30
Gee, I had the same error for some time. Stuck to using a GLCanvas. But it is causing me problems in Linux (I think). I managed to get a BSOD in Windows Xp using the GLJPanel and adding it to a JFrame.

On one comp, it couldn't create a offscreen buffer.
On the other comp, it just died, (BSOD).
4  Java Game APIs & Engines / JOGL Development / Re: Linux Error on: 2003-07-23 13:52:19
Thanks guys, finally I could run Gears.java in linux! Is a good graphics card really needed for jogl to work in Linux properly??

I tried porting my application over to linux but faced the following error which was non-existence in windows xp

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4CD5C437
Function=XVisualIDFromVisual+0x7
Library=/usr/X11R6/lib/libX11.so.6

Current Java thread:
     at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
     at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:42)
     at net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface(X11OnscreenGLContext.java:167)
     at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108)
     - locked <0x44487ad8> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
     - locked <0x44487ad8> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
     at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:119)
     at java.awt.Component.setBounds(Component.java:1665)
     at java.awt.BorderLayout.layoutContainer(BorderLayout.java:683)
     - locked <0x448f2d00> (a java.awt.Component$AWTTreeLock)
     at java.awt.Container.layout(Container.java:1017)
     at java.awt.Container.doLayout(Container.java:1007)
     at java.awt.Container.validateTree(Container.java:1089)
     at java.awt.Container.validate(Container.java:1064)
     - locked <0x448f2d00> (a java.awt.Component$AWTTreeLock)
     at java.awt.Window.pack(Window.java:438)
     at cube.<init>(cube.java:164)
     at cube.main(cube.java:440)


I used a GLCanvas, placing it in a JFrame

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
final Container c = getContentPane();
c.setLayout(new BorderLayout());

glc = GLDrawableFactory.getFactory().createGLCanvas(cap);
glc.setSize(640,480);
glc.requestFocus();
glc.addGLEventListener(view);

// Add the Component into the window
c.add( "Center", glc );
pack(); show();
5  Java Game APIs & Engines / JOGL Development / Linux Error on: 2003-07-23 11:30:17
Redhat 9

export PATH=$PATH:/usr/java/j2sdk1.4.2/bin:/usr/java/j2sdk1.4.2/jre/lib/ext
export CLASSPATH=.:/usr/java/j2sdk1.4.2/jre/lib/ext/jogl.jar

[root@localhost test]# java Gears
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:834)
       at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:60)
       at java.security.AccessController.doPrivileged(Native Method)
       at net.java.games.jogl.impl.NativeLibLoader.<clinit>(NativeLibLoader.java:46)
       at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51)
       at net.java.games.jogl.impl.x11.X11GLContextFactory.createGLContext(X11GLContextFactory.java:52)
       at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:72)
       at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:117)
       at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80)
       at Gears.main(Gears.java:16)
6  Java Game APIs & Engines / JOGL Development / Re: Jogl On Redhat 8 on: 2003-07-19 14:19:45
Not much news about Jogl on Linux yet. Hopefully, someone can write a How-to for using Jogl on Linux, including information on the GL Libraries (ie, Mesa3d on redhat etc etc)...
7  Java Game APIs & Engines / JOGL Development / Re: Init on: 2003-07-17 06:29:35
I tried the same program using the same compiler and same sdk on a different machine with a more powerful video card with 32mb memory and OpenGL 1.4, the error miraculously dissapeared.

The earlier machine had a savage Mx video card with 8mb memory and OpenGL 1.1

Does this have anithing to do with hardware acceleration?
8  Java Game APIs & Engines / JOGL Development / Re: Init on: 2003-07-11 14:16:53
Gee.. you are right, it works like a charm..  Wink
But it worked fine with GL4Java... weird..

Anyway, I got a Application error next:

The instruction at "0x69571cb9" referenced memory at "0x00000020". The memory cannot be "read"
9  Java Game APIs & Engines / JOGL Development / Re: Initialization on: 2003-07-11 13:21:20
I am using java sdk 1.4.1_02-b06 (comes with JBuilder)

The Gears demo works fine...

The real problem arises when i try to resize the window after running it.

java.lang.NullPointerException
     at test.display(test.java:70)
     at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)
     at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:191)
     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:186)
     at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:179)
     at net.java.games.jogl.GLCanvas.display(GLCanvas.java:84)
     at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:95)
     at sun.awt.RepaintArea.paint(RepaintArea.java:177)
     at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
     at java.awt.Component.dispatchEventImpl(Component.java:3699)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
10  Java Game APIs & Engines / JOGL Development / Init on: 2003-07-11 07:21:47
There seems to be an error somewhere in the code but I am not sure where. Anyone can take a look? Thanks Smiley

// test.java

// Import classes from some necessary places
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;

import net.java.games.jogl.*;

public class test extends JFrame implements WindowListener,
                                           GLEventListener                                              
{
     // enables gl and glu calls
     GL gl;
     GLU glu;

        // The OpenGL component to render onto
        public GLCanvas glc = null;
 
        // set up GUI (constructor)
   public test()
   {       
         super( "Canvas" );
     
           // Set the layout of the frame
           final Container c = getContentPane();
           c.setLayout(new BorderLayout());
           
           // create and set capabilities
           GLCapabilities cap = new GLCapabilities();
           cap.setDoubleBuffered(true);
           cap.setDepthBits(12);
           cap.setRedBits(24);
           cap.setGreenBits(24);
           cap.setBlueBits(24);
           cap.setAlphaBits(24);
           
           // create canvas component
           glc = GLDrawableFactory.getFactory().createGLCanvas(cap);
           glc.setSize(300,300);
           
           // Add the Component into the window
            c.add( "Center", glc );
            pack(); show();
            glc.requestFocus();
           
           // Add Windows Listener to the component
           this.addWindowListener( this );
       
           //Add GLEventListener to handle GL events
           glc.addGLEventListener(this);
                   
     }
     
     public void init(GLDrawable drawable)
     {
           gl = drawable.getGL();
           glu = drawable.getGLU();
                       
           gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
           gl.glShadeModel(GL.GL_SMOOTH);
           gl.glEnable(GL.GL_DEPTH_TEST);

     }
     
     public void display(GLDrawable drawable)
     {
           // clear colour and depth buffer
           gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
       
           // Set drawing colour to white
           gl.glColor3f(1.0f,1.0f,1.0f);
           
           // Draw a rectangle
           gl.glBegin(GL.GL_POLYGON);
                 gl.glVertex3f(0.25f,0.25f,0.0f);
                 gl.glVertex3f(0.75f,0.25f,0.0f);
                 gl.glVertex3f(0.75f,0.75f,0.0f);
                 gl.glVertex3f(0.25f,0.75f,0.0f);
           gl.glEnd();
       
   }
   
   public void reshape(GLDrawable drawable, int x, int y, int width, int height)
   {
           gl.glViewport (0, 0, width, height);
           gl.glMatrixMode(GL.GL_PROJECTION);
           gl.glLoadIdentity();
           gl.glOrtho(0.0,1.0,0.0,1.0,-1.0,1.0);
           gl.glMatrixMode(GL.GL_MODELVIEW);
   }
   
   public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
     
   // WindowListener methods
   public void windowActivated( WindowEvent evt ) {}
   public void windowClosed( WindowEvent evt ) {}

   public void windowClosing( WindowEvent evt )
   {
         System.exit( 0 );
   }

   public void windowDeactivated( WindowEvent evt ) {}
   public void windowDeiconified( WindowEvent evt ) {}
   public void windowIconified( WindowEvent evt ) {}
   public void windowOpened( WindowEvent evt ) {}

     
     public static void main( String args[] )
     {
            // Set the look and feel of application
           try
           {
                 UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName());
           } catch (Exception e){}
         
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       
     }

}
11  Java Game APIs & Engines / JOGL Development / Jogl On Redhat 8 on: 2003-07-10 03:13:50
I plan to port a program over from windows, but I do not know what is required to implement Jogl on linux. Apart from the Jogl Libraries and Classes, do I require the native gl libraries? If yes, how do I use them?
12  Java Game APIs & Engines / JOGL Development / Re: Using Jogl on: 2003-06-25 15:32:15
Thanks!!
13  Java Game APIs & Engines / JOGL Development / Re: Using Jogl on: 2003-06-25 13:05:30
well...

1) I received the bindings from Pepijn(GL4Java guy)

2)I am using Windows Xp Sun jdk 1.3.1_01

3)The Gears demo came with the binaries
14  Java Game APIs & Engines / JOGL Development / Using Jogl on: 2003-06-25 12:07:35
I have a set of the Jogl bindings. Included are

1) jogl.dll
2) jogl.jar

How do I set up the environment to make use of the Jogl bindings?

I get this error :

Gears.java:38: cannot access net.java.games.jogl.GLEventListener
bad class file: C:\jogl\net\java\games\jogl\GLEventListener.class
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
 static class GearRenderer implements GLEventListener, MouseListener, MouseMotionListener {
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (15 views)
2014-08-28 18:26:30

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

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

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

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

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

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

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

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

BurntPizza (34 views)
2014-08-08 02:01:56
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!