setup

ok, how do I set up xith3d
The scripts don’t seem to be written correctly, I get:
patm1987@linux:~/Documents/Java/xith3d/xith3d/demo> ./runcubelinux
Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)

where options include:
-client to select the “client” VM
-server to select the “server” VM
-hotspot is a synonym for the “client” VM [deprecated]
The default VM is client.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
              A : separated list of directories, JAR archives,
              and ZIP archives to search for class files.
-D<name>=<value>
              set a system property
-verbose[:class|gc|jni]
              enable verbose output
-version      print product version and exit
-showversion  print product version and continue
-? -help      print this help message
-X            print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
              enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
              disable assertions
-esa | -enablesystemassertions
              enable system assertions
-dsa | -disablesystemassertions
              disable system assertions

./runcubelinux: line 1: …/third-party/vecmath/vecmath.jar: No such file or directory
./runcubelinux: line 1: …/third-party/xith/xith_utilities.jar: No such file or directory
./runcubelinux: line 1: …/libs/xith3d.jar: Permission denied
patm1987@linux:~/Documents/Java/xith3d/xith3d/demo>

I feel like a complete idiot about this, and whenever I run other examples, com.xith3d can’t be found

I placed all the libs in my j2sdk/libs dir
note: I’m using suse 9, j2sdk 1.4.2-b28, and eclipse

Did you follow the instructions here: http://xith.org/installing.php ?

Will.

Thanks, I knew it was something simple like that

hmm, must’ve done something wrong:

patm1987@linux:~/Documents/Java/xith3d/xith3d/demo> java com.xith3d.test.CubeTest
starting frame speed test
Exception in thread “main” net.java.games.jogl.GLException: Error making context current
at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:950)
at com.xith3d.scenegraph.View.renderOnce(View.java:732)
at com.xith3d.scenegraph.View.renderOnce(View.java:665)
at com.xith3d.test.CubeTest.(CubeTest.java:181)
at com.xith3d.test.CubeTest.main(CubeTest.java:201)

and I have nothing but a blank window, get the same errors whatever I run

can we have a little info please on your system?

Have you updated your graphics card drivers (ie. opengl)?

Can you find and run the program “glxinfo” and paste the results please?

Also the version of java (ie. “java -version”)

We can’t help you if we don’t know what hardware and software you are running!

Will.

I use a GeForceFX 5900
I am using the NVIDIA-Linux-x86-1.0-5328-pkg0.run drivers
glxinfo:
patm1987@linux:~> glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce FX 5900/AGP/SSE/3DNOW!
OpenGL version string: 1.4.1 NVIDIA 53.28
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
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_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_transpose_matrix,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_texture_env_add, 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_compiled_vertex_array,
GL_EXT_depth_bounds_test, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_paletted_texture,
GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_shared_texture_palette, GL_EXT_stencil_two_side,
GL_EXT_stencil_wrap, 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,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_HP_occlusion_test, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_blend_square,
GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fence,
GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program,
GL_NV_half_float, GL_NV_light_max_exponent, GL_NV_multisample_filter_hint,
GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_pixel_data_range,
GL_NV_point_sprite, GL_NV_primitive_restart, GL_NV_register_combiners,
GL_NV_register_combiners2, GL_NV_texgen_reflection,
GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4,
GL_NV_texture_expand_normal, GL_NV_texture_rectangle,
GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3,
GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_NV_vertex_program2, GL_NVX_ycrcb,
GL_SGIS_generate_mipmap, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
GL_SGIX_shadow, GL_SUN_slice_accum
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat

0x21 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x22 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x23 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x24 16 tc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 0 0 None
0x25 16 tc 0 16 0 r . . 5 6 5 0 0 24 8 16 16 16 16 0 0 None
0x26 16 tc 0 16 0 r y . 5 6 5 0 0 0 0 16 16 16 16 0 0 None
0x27 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 16 16 16 16 0 0 None
0x28 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 2 1 Ncon
0x29 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 4 1 Ncon
0x2a 16 tc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 2 1 Ncon
0x2b 16 tc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 4 1 Ncon
0x2c 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 16 0 0 None
0x2d 16 dc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 0 0 None
0x2e 16 dc 0 16 0 r . . 5 6 5 0 0 24 8 16 16 16 16 0 0 None
0x2f 16 dc 0 16 0 r y . 5 6 5 0 0 0 0 16 16 16 16 0 0 None
0x30 16 dc 0 16 0 r . . 5 6 5 0 0 0 0 16 16 16 16 0 0 None
0x31 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 2 1 Ncon
0x32 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 16 4 1 Ncon
0x33 16 dc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 2 1 Ncon
0x34 16 dc 0 16 0 r y . 5 6 5 0 0 24 8 16 16 16 16 4 1 Ncon
patm1987@linux:~>

java -version:
patm1987@linux:~> java -version
java version “1.4.2”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot™ Client VM (build 1.4.2-b28, mixed mode)
patm1987@linux:~>

thanks for your help

Change your DefaultDepth from 16 to 24 in /etc/X11/XF86Config-4. Restart the X-Server after that. If this helps I’ll add this to the FAQ.

cool, it works after changing the color depth
thanks alot, now I can start messing with xith