Xith HelpS!!!!


TDSLoader Debug Output
file: model/character.3ds


java.io.IOException: Not found: model/character.3ds
at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:87)
at TDSTest.(TDSTest.java:80)
at TDSTest.main(TDSTest.java:137)
Init GL is net.java.games.jogl.impl.windows.WindowsGLImpl
OpenGL Renderer = GeForce2 MX/AGP/SSE/3DNOW!
OpenGL Version = 1.4.0
OpenGL Vendor = NVIDIA Corporation
OpenGL Extensions = GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters 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_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array 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_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add 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_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NVX_ycrcb GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_WIN_swap_hint WGL_EXT_swap_control
java.lang.NullPointerException
at TDSTest.run(TDSTest.java:130)
at java.lang.Thread.run(Thread.java:534)

This is the error when i execute the 3DS Koader program from xith.com…what should i do to overcome this problem…

Make sure the “model” directory with the “character.3ds” appears in your classpath.

Kev


TDSLoader Debug Output
file: model/character.3ds


java.io.IOException: Not found: model/character.3ds
at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:87)
at TDSTest.(TDSTest.java:80)
at TDSTest.main(TDSTest.java:137)

sorry…i dun clear about the classpath…can you make it more detail…
thanks lot

How are you running the TDSTest ? i.e. what command line are you using?

Kev

oh…im using NetBeans-IDE…is it ok for it?

Yeah, thats fine, to get it to run you must have added xith-3ds.jar to the classpath. Where you did that you need to add the directory that contains the “model” directory.

So if you put all the files in:

c:\code\

So that this would exist:

c:\code\model\character.3ds

You need to make sure “c:\code” is in your classpath.

Kev

Or, I’m not trying to be an *** here…, try to study http://java.sun.com/tutorial and learn some basics, how the classpath works, how to compile and run java programs first - It’s a lot easier to understand what we’re trying to say here then! :smiley:

The .3ds i put in here…

c:\xith-3ds\model\character.3ds

is it right?? but still can not locate the character.3ds…headache

Sorry…i still can not do it…please help me out…thanks a lot

Is character.3ds actually in the model directory?

Kev

yupe, the character.3ds is in the model folder…

or do i need to modify the code?? the code originally is like this

model = new TDSLoader().load(“Model/character.3ds”,true);

na, should be fine. If you put all the files in the c:\xith-3ds\ directory then you need to modify the classpath to include it.

In Netbeans, you need to “mount” the c:\xith-3ds\ directory. Right click on the filesystems icon and mount the directory.

Kev

no, can not…when i mounted the files i got the list on hte Explorer [Filesystem] like this :-

-c:\xith-3ds
-model (folder)
-org (folder)
-TDSTezst
-jogl.jar
-lwjgl.jar
-test.bat
-vecmath.jar
-xith-3ds.jar
-with_utilities

Thats right, you should be able to run it then…

do you know this .jar?? where i can get it??

import display.DisplayOptions;

Um, have you just context switched or something? DisplayOptions is nothing to do with the 3DS loader, I believe its part of JavaCoolDude’s demo stuff?

Kev

oh…yaa…is JavaCoolDude’s demo…wahh you are smart :slight_smile:

i get error on that particular part…so, im looking for the .jar

you know how to get it??

[quote]do you know this .jar?? where i can get it??

import display.DisplayOptions;
[/quote]
Linky linky link link ;D

Oh…very thank you kevglass and Java Cool Dude…cool! horayyyy~~~especially kevglass…im very appreciate you spent your time here with me…

Java Cool Dude can you plz…have a look for my problem…please :’(

Yes I ran into the same problem than you and I came up with solution; suicide…
j/k here’s what I did


    BranchGroup  holdModels  = new BranchGroup();
    ClassLoader  fileLoader  = RippleFactory.class.getClassLoader();
    InputStream  fileStream  = fileLoader.getResourceAsStream("Data/pond.3ds");

    try{
      if(fileStream == null)
        fileStream  = new java.io.FileInputStream("Data/pond.3ds");

      holdModels = new TDSLoader().load("",fileStream, false);
    }
    catch(Exception e){}

Of coarse you need to make the due modifications as in not every class out there is named RipleFactory ;D