Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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  
  Xith3D problem  (Read 1543 times)
0 Members and 1 Guest are viewing this topic.
Offline ddm

Junior Newbie




Java games rock!


« Posted 2005-03-17 06:07:07 »

Hello everybody !

I have just installed Xith3d for my apps and tried it, my first program runs well but I got the following messages :

Available 0: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 8, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0 ] MS: false 2 Score: 1336

Available 1: GLCapabilities [DoubleBuffered: false, 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 Score: 1400

Available 2: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 8, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0 ] MS: false 2 Score: 336

Available 3: 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 Score: 400

Available 4: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2 Score: 1144

Available 5: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 16, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2 Score: 1048

Available 6: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: false, DepthBits: 32, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2 Score: 144

Available 7: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: false, DepthBits: 16, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 0 ] MS: false 2 Score: 48

Available 8: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 32, 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 Score: 1448

Available 9: GLCapabilities [DoubleBuffered: false, Stereo: false, HardwareAccelerated: false, DepthBits: 16, 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 Score: 1352

Available 10: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: false, DepthBits: 32, 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 Score: 448

Available 11: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: false, DepthBits: 16, 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 Score: 352

Chosen index: 2

Chosen capabilities:

GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 8, Red: 8, Green: 8, Blue: 8, Alpha: 8, Red Accum: 0, Green Accum: 0, Blue Accum: 0, Alpha Accum: 0 ] MS: false 2

Init GL is net.java.games.jogl.impl.windows.WindowsGLImpl

OpenGL Renderer = RADEON 8500 DDR x86/MMX/3DNow!/SSE

OpenGL Version = 1.3.4273 Win2000 Release

OpenGL Vendor = ATI Technologies Inc.

OpenGL Extensions = GL_ARB_multitexture GL_EXT_texture_env_add GL_EXT_compiled_vertex_array GL_S3_s3tc GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_blend GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_ATI_element_array GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_map_object_buffer GL_ATI_pn_triangles GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATI_vertex_array_object GL_ATI_vertex_attrib_array_object GL_ATI_vertex_streams GL_ATIX_texture_env_combine3 GL_ATIX_texture_env_route GL_ATIX_vertex_shader_output_point_size GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_EXT_vertex_shader GL_HP_occlusion_test GL_NV_texgen_reflection GL_NV_blend_square GL_NV_occlusion_query GL_SGI_color_matrix GL_SGIS_texture_edge_clamp GL_SGIS_texture_border_clamp GL_SGIS_texture_lod GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_extensions_string WGL_EXT_swap_control

No Fragment Program support, skipping

//------messages appear after closing the program---------

net.java.games.jogl.GLException: Error swapping buffers

     at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers(WindowsOnscreenGLContext.java:140)

     at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:241)

     at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)

     at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)

     at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1159)

     at com.xith3d.scenegraph.View.renderOnce(View.java:591)

     at com.xith3d.scenegraph.View.renderOnce(View.java:524)

     at HelloXith3D.<init>(HelloXith3D.java:208)

     at HelloXith3D.main(HelloXith3D.java:97)

Exception in thread "main"

//-----------------------------------------------------------

Can anyne tell me how to fix these bugs !

Thanks advince !
Offline zaknixon

Senior Newbie




&lt;/bored&gt;


« Reply #1 - Posted 2005-03-17 17:54:37 »

I get the same thing.

Huh I personally don't know the fix,
but it is not uncommon.

Zak

----------------------------------
Zak Nixon
Software Engineer
Davidson Technologies
-----------------------------------
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #2 - Posted 2005-03-17 18:30:15 »

I think it has to do something with the rendering thread trying to render when the application is closing. You can stop it by stopping the rendering thread first.

You might get a DI_BUFFEROVERFLOW message then (but thats only one single line).
See (this a similar problem) :
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1110382938

Hope this helps!

:: JOODE :: Xith3d :: OdeJava ::
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline glvgfz

Junior Newbie




Java games rock!


« Reply #3 - Posted 2005-03-24 04:12:05 »

I get the same problem.
I'm running:
GNU/Linux 2.6.10 (Vector)
Java 1.5.01
AMD 1900+

The messages are printed before the program starts.
Could they still have something to do with the application stopping?
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2005-03-24 07:12:01 »

Does this bug prevent you from using Xith3D at all?  Or does it just print the stack trace on exit?

Obviously the former is a much more serious bug Smiley

Cheers,

Will.

Offline Alistair_Dickie

Senior Newbie




Java games rock!


« Reply #5 - Posted 2005-03-24 09:10:49 »

Most of the examples were giving me this exception. I was able to stop it in the code I wrote by putting a graceful exit so System.exit(0) is not called while rendering is happening. Psuedo code is something like this in a class that extends Thread.


private boolean running;

public void run(){

  while(running){
     do some work....
     view.renderOnce();

  }
  System.exit(0);
}

public boolean setRunning(boolean running){
  this.running = running;
}

then call setRunning(false) on the rendering thread.
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2005-03-24 10:29:11 »

This is a standard JOGL exception indicating that it was in the middle of rendering when you abruptly ended execution.

The pseudo code above is right on the money.

Kev

Offline glvgfz

Junior Newbie




Java games rock!


« Reply #7 - Posted 2005-03-26 09:52:44 »

Quote
Does this bug prevent you from using Xith3D at all?  Or does it just print the stack trace on exit?

Obviously the former is a much more serious bug Smiley

Cheers,

Will.



No, It does not stop me from using Xith3D.
Its just more of an annoyance than anything else.


I'm even getting this problem with HelloXith3D.java
Here are the last 4 lines:

       ...
       while (System.currentTimeMillis()-time<5000)
                   view.renderOnce();
       System.out.println("done.");
}


Here is the order in which things happen.

Just after it press enter to run the HelloXith3D.class file, I get all that output.
Then a window opens up and the square renders.
After that the window closes.

The thing that is confusing me is that I get the ouput *before* the window opens and before the application ends.

Thanks for the replies
-Dimitri
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (26 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (13 views)
2014-07-29 10:59:34

E.R. Fleming (34 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org 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‑gaming.org
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!