Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12045 Posts in 1593 Topics- by 593 Members - Latest Member: zhang

25. May 2013, 10:58:09 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Getting Started : Black Screen
Pages: [1]
Print
Author Topic: Getting Started : Black Screen  (Read 530 times)
jeffhoye
developers
Enjoying the stay
***
Offline Offline

Posts: 32


View Profile Email
« on: 29. August 2011, 10:10:38 pm »

Hello. I'm considering switching to xith3d for my game, but I've run into some configuration problems.  I'm a very experienced programmer in java and java3d.  My game runs via jnlp, so I'm particularly interested in getting that to work. 

I got xith set up in eclipse, and if I run the demo applications under Xith3DTestLauncher, they run.  But when I run any of the tests on their own, I just get a black screen.  The same happens when I try this java web start application:

http://xith.org/archive/jws/FirstPersonInputHandlerTest.jnlp

I noticed that the window icon (in the upper left corner) is different when it doesn't work.  It seems that the test apps use LWJGL by default, which seems to be the problem.  I don't yet understand all of the options for the backing library.  Is there a good place I can read about this, and is there a command line arg that can be used on that example .jnlp program to use one of the configurations that works?  I'd prefer to just get the LWJGL working, but I'm wondering if any of my users will have the same problem.  Also, there are no error messages, is there a way to turn on some debugging info? 

I downloaded LWJGL and ran the test program, and it works fine on my computer.

Also, some of the examples print this:
Warning: Standalone-incapable OpenGLLayer selected. Wrapping in dummy frame. Things may not work as expected. 

That seems to be related.  What's the deal with a dummy frame?  What is the solution?

The test .jnlp program works fine on my other computer.

update:  I get the following error from the windows event log:
Display driver amdkmdap stopped responding and has successfully recovered. 
I wish I could find out what call was causing the problem.

Thanks in advance!
-Jeff

Rig: Vista 64-bit, Intel Core 2 Duo E8500; ATI Radeon HD 4870 x2
Java3d and most games run great.  I believe my drivers are up to date. 

« Last Edit: 30. August 2011, 01:47:49 am by jeffhoye » Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #1 on: 30. August 2011, 08:36:31 am »

I guess, you have regularly installed Java3D. You should uninstall it, because it poisons your boot classpath with useless libraries. Though this shouldn't be the problem here.

There are indeed commandline arguments in the testcases. Just follow the super constructor call in any of the testcases and you'll see them. I think, you can output them by using the "--help" argument. But I am not sure right from my head.

There are some OpenGLLayers like JOGL_SWING, that are not meant to be used for applications dedicated to a single OpenGL context, but for embedding them in an existing Swing application. If you're using these layers in the test launcher, the context is wrapped in a dummy JFrame to make it work. That's it. Nothing to worry about. It is not the reason for your issues.

Make sure, your classpath looks exactly like that of the testlauncher. Well, you could skip the parts, that add JOGL and just use LWJGL. But in principle it should be the same.
Logged
jeffhoye
developers
Enjoying the stay
***
Offline Offline

Posts: 32


View Profile Email
« Reply #2 on: 30. August 2011, 11:03:27 am »

Thanks Marvin.  I read your tutorial last night, it was a big help.  I'm going to try to track down exactly what call causes the problem.
Logged
jeffhoye
developers
Enjoying the stay
***
Offline Offline

Posts: 32


View Profile Email
« Reply #3 on: 30. August 2011, 12:52:08 pm »

Updated graphics drivers.  Works fine now.  <sheepishly backing away>
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #4 on: 30. August 2011, 01:32:53 pm »

<sheepishly backing away>

haha Smiley

Well, I very much appreciate it, if someone posts something like this. It is a great help for anyone, having similar problems, to know the solution. So, thank you very much.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic