Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  JOGL Programs Doing ...nothing?  (Read 1073 times)
0 Members and 1 Guest are viewing this topic.
Offline Haquejiel

Innocent Bystander

Java games rock!

« Posted 2004-08-16 21:03:40 »

Alright...I am utterly and completely new to jogl and to OpenGL - I'll just get that fact out of the way. I have a special disdain reserved for C/C++ after programming with both for the better half of a decade, so when I decided to get into 3D graphics, I decided Java was the way to go, and jogl looks like it's the absolute best thing to go with.
Now, I scanned through the forums when I first took interest in jogl to work out how to install it, and I went with this method:

I downloaded from the precompiled binaries and documents section of (jogl's site). I completely uninstalled and redid Java with the newest version (IOW, I did this 2 days ago, so there's a good chance it's the newest).
Currently it resides on my computer in:
C:\X\Java\something (something being jdk. or whatever it was)
C:\Program Files\Java\Something (only the JRE here)

I copied jogl.dll and jogl_cg.dll (I think those were the names) into z\bin\ (z being the roots listed above), as well as into C:\X\Windows\System32 (in case it merits curiousity, I place all system folders under the folder X).

Jogl.jar was placed into z\lib\ext\ in both cases.

As far as I know, this is a correct installation. I've tried running a program as follows (this program is one posted in the thread "Installation Problem (newcomer):

(I apologize for the format; I am not used to this message board)


public class HelloWorld {
 public static void main (String args[]) {
   try {
     System.out.println("Hello World! (The native libraries are installed.)");
     GLCapabilities caps = new GLCapabilities();
     System.out.println("Hello JOGL! (The jar appears to be available.)");
   } catch (Exception e) {

Both statements were printed. I have no problems compiling, jaring, etc the file. It runs quite well.
The problem is when I run any system wherein I create a GLCanvas using this sort of line:
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas( glCaps );

I only do this inside a program with a frame and a jPanel to place it in.
I usually use something like jPanel.add(canvas, some-orientation-or-another) to add the canvas to the panel.

In theory, this should work. The only problem is when any program like this is run (I.e...actually doing anything with openGL), nothing will ever show up. No errors - not even if I cluster the entire thing in try/catch statements with generic Exceptions. I've tried using System.out.println("1"); in incremental values to figure out if the program is stopping somewhere. It's not stopping - it's just not showing up.
If I take out the jPanel.add and the declaration of canvas the frame shows up.
Furthermore, any .jar I run using jogl, or demo, or anything implementing it in any way, produces the same problem. It runs, but nothing shows up.

I've tried the other versions of Jogl starting from 1.1 up, including trying it with the Nightlybuild section (which I think is b04). No difference.

The only thing I can conclude is that I'm either doing something incredibly stupid or it's my machine. Specs are as follows:

2.4ghz (intel pentium 4), 412 ram (ddr, mayhaps?), SiS 650 video card (integrated chip - part of the motherboard). I'm not sure what other information is neccessary, but I might add this is a computer that can take a game such as Call of Duty that uses openGL at max settings and not lag whatsoever, so I don't think it's a video card problem.

Anyone have any idea what I'm doing wrong? =(
Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

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

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

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

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

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

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

Solater (177 views)
2018-03-17 05:04:08
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!