Hi!
I’d like to show a “3D is loading…” Splashscreen while Waiting for the Init…
Unfortunately I don’t know how I realize that the Scene has finished the initializing and renders correctly.
Thanks for any help
Klemens
Hi!
I’d like to show a “3D is loading…” Splashscreen while Waiting for the Init…
Unfortunately I don’t know how I realize that the Scene has finished the initializing and renders correctly.
Thanks for any help
Klemens
Xith3D doesn’t take that long to start in my experiance, so I show a Textured Quad while my program is loading.
Otherwise you’d have to use the standard Java2D stuff to do it.
See: http://www.xith.org/javadoc/org/xith3d/geometry/Quad.html
Will.
Thanks for the reply…
But thats not answering my question exactly…
I need to know when this:
...
Chosen index: 5
Chosen capabilities:
GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 8, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ] MS: false 2
Init GL is net.java.games.jogl.impl.windows.WindowsGLImpl
OpenGL Renderer = xxx
OpenGL Version = xxx
OpenGL Vendor = xxx
...
stuff has finished… after this, the rendering starts immediately…
Id’ like to use the Java2D Stuff… but the program doesn’t know when the init (output above) finished succesfully.
I have a 2D/3D Game … and the time of switching needs to be bridged…
Thank for more help ;D
Klemens
Why don’t you try a boolean finished! The Splashscreen has access to this boolean and when its true, then it stops and the prog starts.
Oh, I have just a question : is it possible to disable all these messages that are displayed when Xith start ?
Is it due to JOGL ? Is there a command or a logger to disable ?
but what tells me: set the boolean true?
when am i able to deside “the loading has finished”…
As far as I know:
If you have the CVS checkout of the sources it’s easy… in the class: OldStyleGLCapabilitiesChooser there is a DEBUG flag… its private static final so you have to build it after you changed it to false…
that eliminates one output… for the other just search the sources for the used string… there you can uncomment the System.out.print…'s…
Another way is to temporary set the System.err and System.out to a custom outputstream… after loading you can set them back to the before-saved default streams…
Hi,
If one doesn’t exist, we can add a method which returns true when the 3D stuff have initialised.
Does it really take that long to initialise on your computer? How many seconds does it take? Personally I have never worried about it as it was so short.
Will.
I would like to fix this and all logging statements. See: http://192.18.37.44/forums/index.php?topic=8404.0
I just need some time to do it 
Will.
Hi
In my experience, what takes the time is texture loading, including textures on your models. Try this.
Create your canvas, render peer etc, then an overlay, with no textures, now choose your favorite method to display some text on it. Add the overlay, then view.renderOnce(), then Thread.sleep(10). Then load the rest of your scene including the models and any other textures. Then you can either enter your loop or call view.start() etc. The initial render should happen quite quickly, you know when you have finished loading the rest of your scene, so you can then remove the original overlay.
If you use a texture on your splash screen instead, you’ll notice the time it takes to display your splash screen goes up considerably.
HTH
Endolf
Thanks… But what do you mean with “overlay” ?
com.xith3d.userinterface.UIOverlay
Look at Xith3DGuiTest for an example of it’s use. (If you have Xith3D source)
HTH
Endolf
Yes, before you start jumping though hoops, time exactly how long the Xith3D startup actually is. It seems that nobody else shares you slow Xith3D startup (texture and model loading though is slow).
Will.
Okay, thanks.
It’s not really urgent.
[quote]Oh, I have just a question : is it possible to disable all these messages that are displayed when Xith start ?
Is it due to JOGL ? Is there a command or a logger to disable ?
[/quote]
I simply wouldn’t do that, because it’s simply another point for debugging, when e.g. the graphics card doesn’t work correctly or hardware accaleration is disabled (was on my linux at the beginning)
[quote]Oh, I have just a question : is it possible to disable all these messages that are displayed when Xith start ?
Is it due to JOGL ? Is there a command or a logger to disable ?
I simply wouldn’t do that, because it’s simply another point for debugging, when e.g. the graphics card doesn’t work correctly or hardware accaleration is disabled (was on my linux at the beginning)
[/quote]
I think of an alternative where it’s disabled by default but you can enable it for debugging.