Warning: This long message will wear you down and make you cry and beat you into submission, and for all the work of reading it, you won’t learn any cool opengl tricks for making reflective quantum bump mapping VBP’s (that’s a VB0++).
I spent a good amount of time building a game using jogl, and while I am definitely glad that I can now work with open gl, and I feel my games concept is pretty solid, but the thing that kills me the most is I seem to have a problem where the game only runs on about half the machines that try to run it, as a webstart program the fail rate went up at least a little bit (I think webstart has that old flaw from the JVM where it uses a lot of d3d devices instead of re-using a single one which was hell on ATI cards among other problems). A typical problem is the dreaded white screen which happens on some computers when going to full screen mode (no errors are generated, and my code is still running).
Is it possible I’m losing the GL context somehow, I read in a nehe tutorial (31 on milkshape loading) something about changing display mode causes the opengl context to be lost, and init to be called again… but texture files might have to be loaded all over. Is it possible this type of behavior would cause a screen to go all white (keeping in mind that I use colors and textures… so even if the textures didn’t load, I’d still have colored objects and lighting should also exist). I do not keep references to the GL variables (though I’m using a textureloader posted in this forum and it keeps a reference, but I don’t think this is an issue since it’s created in init which if the gl context is lost should be called again… and textures are loaded in display methods only and in init… I’m altering the textureloader to not keep a reference to gl anymore too). My rendering loop is setup to print out opengl error’s and has a catchall for any throwable that is uncaught in the code (which causes some strange things to happen when there is an exception but at least I get a real error instead of the meaningless one that gets printed if an exception propagates up to jogl). So far no one who has a problem running it seems to be getting any errors at all, this is hard to verify though because most people probably aren’t familiar enough with their computers to be walked through turning on the console and logging.
I have to admit I’m using the oldest jogl files as I know in at least one case the newer ones wouldn’t work, anyone have success stories about using the newer jogl binaries instead of the originals? All of the binaries seem to work fine on my computer.
Basically I’m facing two big disasters, the important one is the failure to run ratio which I believe is tied to jogl… and then the other one that seems to be an issue is the warning on webstart apps… sun should consider toning that down a bit, to approximately the same level as IE for downloading an exe file, I mean seriously, if I had a nickel for every time I read a story about how someone couldn’t get their own mother to run their webstart app because of that warning, I’d have at least 10 cents.