Show Posts
|
|
Pages: [1]
|
|
1
|
Java Game APIs & Engines / JOGL Development / Re: JOGL application freezing in Linux + Solaris but not Windows
|
on: 2008-08-18 17:48:13
|
|
Ok the problem only remains in my take screenshot function. It totally freezes the program Like I described in original post. I believe this has something to do with threading. For some reason the JFileChooser freezes the whole program while it waits for the user to select file. But hte dialog itself is frozen. It is very weird and I am not sure how to fix it. It works for loading data in, the JFileChooser that is. What are some things I should knwo about Java + Threads? + GUI that are different from Windows in LInux? Because that seems to be the problem here.
|
|
|
|
|
4
|
Java Game APIs & Engines / JOGL Development / JOGL application freezing in Linux + Solaris but not Windows
|
on: 2008-08-13 23:03:15
|
I have a very weird problem. I made a web-start application that utilizes Java OpenGL bindings. It runs fine on Windows, but on linux and solaris it starts fine but freezes at one point. And there is no way for me to close the window, it is basically non-responsive at all. What could be causing this? Usually this happens when I switch shaders in my program, or when I start generating iso surface. I don't believe I use any native resources by that point since I read the shaders in at the start and the program doesn't freeze right after I read in the volume data itself. What could potentially be causing this? If it would help, here is the application itself - http://giga2.cs.ohiou.edu/~neiman/jstart/jung/volume.jnlp Try to load a file in (please do not load anything higher than 15mb), and try to switch shaders. The Java console freezes as well by this point so there is no way for me to know if any exceptions are thrown or anything. How would I go about even debugging this?
|
|
|
|
|
5
|
Java Game APIs & Engines / JOGL Development / Re: VBO trouble in Windows Vista.
|
on: 2008-07-09 14:46:34
|
Hello. I seem to have solved this problem by using: 1 2 3 4 5
| for (int i = 0; i < 2; ++i) { int inc = true_count / 2; gl.glDrawElements( GL.GL_QUADS, inc, GL.GL_UNSIGNED_INT, inc * i * 4); } |
instead of one glDrawElements call. The FPS is not bad either  . Why does this happen though? Is there a limit on how many primitives DrawElements can do at one time? Also same problem existed for glDrawRangeElements.
|
|
|
|
|
6
|
Java Game APIs & Engines / JOGL Development / Re: VBO trouble in Windows Vista.
|
on: 2008-07-08 21:41:32
|
|
I use IntBuffres for index arrays. I don't believe nio buffers offer unsigned version of int, but I don't believe it matters, since both take up same exact size, and my indecies don't get larger than 2^(32-1).
Yes I know it makes a lot of drawing difference, but i tried glDrawArrays to see if it would work on same sized vertices and colors buffers, and it did, versus glDrawElements that didn't. In both cases the index buffer was already in the GPU memory anyway.
The crash came in Vista turning its screen black and then coming back on with a message that video driver has crashed but has been recovered successfully.
|
|
|
|
|
8
|
Java Game APIs & Engines / JOGL Development / Re: VBO trouble in Windows Vista.
|
on: 2008-07-07 21:44:19
|
|
Developments!
It appears that the problem is not with me using too much memory, but using glDrawElements instead of glDrawArrays. This is so weird, but what the hell is going on? This is obviously not a memory issue, but something to do with glDrawElements vs glDrawArrays. My index array is already in GPU memory anyway, so it can't be because of indexing, or can it? Is there some sort of overhead with glDrawElements that pushes my card over the line?
|
|
|
|
|
9
|
Java Game APIs & Engines / JOGL Development / Re: VBO trouble in Windows Vista.
|
on: 2008-07-07 20:29:02
|
|
I have GeForce 8600GT 256mb. It is on a laptop.
What would be a good web-site to get alternative drivers for my card? I just used the official ones so far. My games seem to work fast enough, or at least about as fast as they did in XP (Mass Effect in particular).
|
|
|
|
|
10
|
Java Game APIs & Engines / JOGL Development / VBO trouble in Windows Vista.
|
on: 2008-07-07 20:13:02
|
|
I have made an application that uses VBO's to render large volume of data. I use around 160mb total on the GPU. This program crashes on windows vista and OS tells me that the display driver has crashed but has recovered. There are no exceptions thrown by Java, however, and the program continues to run, it just doesn't render anything.
Same program works fine with smaller data sets such as around 80mb. The weird part is, that this program worked fine with 160mb usage under windows XP. And if I tried to set buffers that were too large for the GPU, it threw exceptions and at least gave me some errors.
What could be happening here? Does Windows Vista use more GPU memory for itself, so my program doesn't have enough of it? Is there a way to get this working under Vista or will I just have to use larger data sets under XP?
|
|
|
|
|
16
|
Java Game APIs & Engines / JOGL Development / Cannot retrieve location of uniform variable in my vertex shader
|
on: 2008-06-23 00:02:43
|
I made a wrapper class for shaders in Java and added following method to set value to floating uniform variables in my vertex shader program: 1 2 3 4 5 6 7
| public boolean setUniformVariable( String name, float var ) { int var_location = gl.glGetUniformLocation( program, name ); if( var_location == -1 ) return false; gl.glUniform1f( var_location, var ); return true; } |
Everything else in my class works. That is I can compile shaders, bind them to int program and use them in the rest of my application. In the vertex program i declare uniform float time; at the top, and then try to set a value to it on display call. but this function (setUniformVariable) always returns false, meaning that glGetUniformLocation is not finding the variable. What is going on here?
|
|
|
|
|
21
|
Java Game APIs & Engines / JOGL Development / Re: How to make my JOGL application start with Java Webstart
|
on: 2008-06-09 07:06:51
|
I followed this guys advise : http://forum.worldwindcentral.com/showthread.php?t=19005and compiled my project with those 2 jars. Now i get this: 1 2
| #### Java Web Start Error: #### Could not verify signing in resource: http: |
and exception 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
| java.lang.SecurityException: no manifiest section for signature file entry com/sun/gluegen/runtime/NativeLibrary$1.class at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source) at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source) at sun.security.util.SignatureFileVerifier.process(Unknown Source) at java.util.jar.JarVerifier.processEntry(Unknown Source) at java.util.jar.JarVerifier.update(Unknown Source) at java.util.jar.JarFile.initializeVerifier(Unknown Source) at java.util.jar.JarFile.getInputStream(Unknown Source) at com.sun.deploy.cache.CacheEntry.writeManifest(Unknown Source) at com.sun.deploy.cache.CacheEntry.writeFileToDisk(Unknown Source) at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source) at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source) at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source) at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source) at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source) at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source) at com.sun.javaws.Launcher.downloadResources(Unknown Source) at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.launch(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) |
so something is wrong with those 2 jars? What should I use to make my application to correctly start through WebStart?
|
|
|
|
|
22
|
Java Game APIs & Engines / JOGL Development / Re: How to make my JOGL application start with Java Webstart
|
on: 2008-06-09 06:50:01
|
i tried to follow this, and work off Chris Campbell's JNLP and now i get this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Starting.... Exception in thread "Thread-14" java.lang.ExceptionInInitializerError at javax.media.opengl.GLCanvas.<clinit>(GLCanvas.java:63) at edu.ohiou.cs456_badabing.sceneapi.JavaDia.run(JavaDia.java:174) at java.lang.Thread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission jogl.verbose read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at com.sun.opengl.impl.Debug$2.run(Debug.java:75) at java.security.AccessController.doPrivileged(Native Method) at com.sun.opengl.impl.Debug.isPropertyDefined(Debug.java:73) at com.sun.opengl.impl.Debug.<clinit>(Debug.java:52) ... 3 more |
|
|
|
|
|
24
|
Java Game APIs & Engines / JOGL Development / Re: Crash or Exception when trying to use big memory
|
on: 2008-06-09 05:54:11
|
|
i think your problem is somewhere else besides your GL panel.
What is the line in YOUR program that generates this? that is what is the package name for your java files.
Also looks like you are trying to use too much memory. I think there is an upper limit on how much JVM can allocate. Also could have something to do with how much total RAM your box has, and how much of it is free at the time you start your program.
|
|
|
|
|
25
|
Java Game APIs & Engines / JOGL Development / How to make my JOGL application start with Java Webstart
|
on: 2008-06-09 05:46:46
|
|
Hello! This is my first post here, and I hope I get to stay and help, as well as receive help here for some good time.
I have been studying Java OpenGL for about a few month now, and I have made project that I run on my windows machine. I compile it into a jar, and inside my main method i have line: "System.load( System.getProperty( "user.dir" ) + "/jogl.dll" );". Of course I put the jogl.dll into same folder as my jar.
What I am wondering is how can I make my application run from Java WebStart? I know i have to make a JNLP file for it, but I am not sure how.
My question is, can anybody post a tutorial for using Java Webstart to load JOGL application jar from my own webhost, but load native libraries from some other place, as well as make sure it would run on linux, windows, mac, etc. How would I have to change my own program, and what a simple example of such JNLP file might be?
I was unable to find clear tutorials on this on the web, so I am hoping one of you guys can help me out with this.
Thank you very much in advance!
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|