Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Java Game APIs & Engines / Java 3D / Re: MD2Loader...jelp!! on: 2004-03-11 12:21:21
if i want to fix the problem...what should i do?

thanks
2  Java Game APIs & Engines / Java 3D / Re: MD2Loader...jelp!! on: 2004-03-11 11:44:19
OopS..im very sorry...
but thanks for answering my post...

what can i do to fis the problem?
3  Java Game APIs & Engines / Java 3D / MD2Loader...jelp!! on: 2004-03-11 11:21:46
hello...i created a model and try to load it to java using MD2Loader but i got this error message

java.lang.ArrayIndexOutOfBoundsException: 0
       at javax.media.j3d.GeometryStripArrayRetained.setStripVertexCounts(GeometryStripArrayRetained.java:106)
       at javax.media.j3d.GeometryStripArray.<init>(GeometryStripArray.java:60)
       at javax.media.j3d.TriangleFanArray.<init>(TriangleFanArray.java:60)



but when i load the pac3D.md2 and tris.md2 (download from internet)is ok, no error occur...how to solve it??? thanks

4  Java Game APIs & Engines / OpenGL Development / MD2Loader on: 2004-03-11 11:18:16
hello...i created a model and try to load it to java using MD2Loader but i got this error message

java.lang.ArrayIndexOutOfBoundsException: 0
       at javax.media.j3d.GeometryStripArrayRetained.setStripVertexCounts(GeometryStripArrayRetained.java:106)
       at javax.media.j3d.GeometryStripArray.<init>(GeometryStripArray.java:60)
       at javax.media.j3d.TriangleFanArray.<init>(TriangleFanArray.java:60)



but when i load the pac3D.md2 and tris.md2 (download from internet)is ok, no error occur...how to solve it??? thanks

5  Java Game APIs & Engines / Xith3D Forums / MD2---loader on: 2004-03-11 11:16:49
hello...i created a model and try to load it to java using MD2Loader but i got this error message

java.lang.ArrayIndexOutOfBoundsException: 0
       at javax.media.j3d.GeometryStripArrayRetained.setStripVertexCounts(GeometryStripArrayRetained.java:106)
       at javax.media.j3d.GeometryStripArray.<init>(GeometryStripArray.java:60)
       at javax.media.j3d.TriangleFanArray.<init>(TriangleFanArray.java:60)



but when i laod the pac3D.md2 and tris.md2 (downkoad from internet)is ok, no error occur...how to solve it??? thanks

6  Java Game APIs & Engines / Xith3D Forums / MD2 files on: 2004-03-10 07:00:17
which 3D software can create the .MD2 extension files??

thanks alot
7  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 06:39:43
i mean the xith-3ds.zip i was download from there...or..where you guys get it from??
8  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 06:19:45
the Xith-3d i was downlaoded from here....

http://www.newdawnsoftware.com/resources/xith3d/
9  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 05:57:28
before compile i rename the TDSTest.java...im using NetBeans0IDE..so im not sure what command lines is using...since in NetBeans-IDE can easily compile program by just clicking the "execute icon" to F6.
10  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 05:44:19
im very sorry SpuTTer, i just asking only...i still want to learn Xith....please forgive me  Embarrassed  Cry

i did open the xith-3ds.jar inside got TDSTest.class, and i rename my class but still have the same error...

thanks
11  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 05:27:45
im very sorry about this...im learning the basic java at the moment..other than Xith

any nice loader that can load animated .3ds recommend to me? thanks alot
12  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 05:17:17
is it the xith-3ds.jar??? i do checked it, i execute but give me this

Failed to load Main-Class manifest attribute from
c:\xith\xith-3ds.jar

im using netbeans-ide as you know...
13  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 05:05:20
yes i do have...is like this

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

i even put the character.3ds here

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

but still can not locate the file...and one more, even if i change the file name like this

   final String pathname = "model/";  
   final String modelfile = "cube.3ds";

it still display the error message

*java.io.IOException: Not found: model/character.3ds


instead of  

*java.io.IOException: Not found: model/cube.3ds


please tell me why it still look for character.3ds only but not for cube.3ds...i tried other files but still look for chracter.3ds

thanks
josh
14  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-10 04:37:20
import com.xith3d.scenegraph.VirtualUniverse;
import com.xith3d.scenegraph.View;
import com.xith3d.scenegraph.Locale;
import com.xith3d.scenegraph.BranchGroup;
import com.xith3d.scenegraph.Canvas3D;
import com.xith3d.scenegraph.DirectionalLight;
import com.xith3d.scenegraph.AmbientLight;
import com.xith3d.scenegraph.TransformGroup;
import com.xith3d.scenegraph.Transform3D;

import com.xith3d.render.RenderOptions;
import com.xith3d.render.Option;
import com.xith3d.render.CanvasPeer;
import com.xith3d.render.RenderPeer;
import com.xith3d.render.jogl.RenderPeerImpl;

import javax.vecmath.Vector3f;
import javax.vecmath.Color3f;
import java.util.ArrayList;

import org.newdawn.xith3d.threeds.TDSLoader;
import org.newdawn.xith3d.threeds.model.TDSModel;

import java.io.*;


public class TDSTest implements Runnable {
   private View view;
   private double lightAngle;
   private double modelAngle;
   private float anim = 0.0f;
   private DirectionalLight light;
   private TransformGroup tg = new TransformGroup();
   private TDSModel model;
   
   final String pathname = "model/";
   final String modelfile = "character.3ds";
   
   public TDSTest() {
       VirtualUniverse universe = new VirtualUniverse();
       view = new View();            
       view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
       universe.addView(view);
       Locale locale = new Locale();
       universe.addLocale(locale);
       
       view.setBackClipDistance(500.0f);
       
       // setup view        
       view.getTransform().lookAt(
           new Vector3f( 20, 10, 0),  // location of eye (cubes)
           new Vector3f( 0, 10, 0),     // center of view (cubes)
           new Vector3f( 0, 1, 0));    // vector pointing up
       
       RenderPeer rp = new RenderPeerImpl();
       CanvasPeer cp = rp.makeCanvas(null, 800, 600, 32, false);
       Canvas3D canvas = new Canvas3D();
       canvas.set3DPeer(cp);
       view.addCanvas3D(canvas);
       
       RenderOptions options = new RenderOptions();
       options.setOption(Option.USE_SHADOWS,true);
       options.setOption(Option.USE_LIGHTING,true);
       
       cp.setRenderOptions(options);
       
       BranchGroup root = new BranchGroup();
       locale.addBranchGraph(root);
       
       Color3f ambientColor = new Color3f(0.5f, 0.5f, 0.5f);
     AmbientLight ambientLightNode = new AmbientLight(ambientColor);
     root.addChild(ambientLightNode);
       
       light = new DirectionalLight(true,new Color3f(1f,1f,1f),new Vector3f(0,0,1));
       root.addChild(light);
       
       TDSLoader.setDebug(true);

       try {
           long start = System.currentTimeMillis();
           
           InputStream bis = new FileInputStream(pathname + modelfile);
           TDSLoader dslader = new TDSLoader();
           dslader.setGenerateMipMaps(true);
           model = dslader.load(pathname, bis, true);
           
           //model = new TDSLoader().load("character.3ds",true);
           //model = new TDSLoader().load("model/cube_set/cube_rotation.3ds");
           //model = new TDSLoader().load("model/jeep/jeep1.3ds",true);
           //model = new TDSLoader().load("angel/angel.3ds",true);
           //model = new TDSLoader().load("angel/chalice.3ds",true);
           //model.setShowBounds(true,true);
           //tg.addChild(model);
           
           //model = new TDSLoader().load("model_set/redbox_max.3DS",true);
           //model = new TDSLoader().load("jeep2/jeep.3ds",true);
           //model = new TDSLoader().load("jeep2/scale.3ds",true);
           //model = new TDSLoader().load("others/Tube.3ds",true);
           //model = new TDSLoader().load("samples/Kugel.3ds",true);
           //model = new TDSLoader().load("samples/building09.3ds",true);
           //model = new TDSLoader().load("scaleanim/output.3ds",true);
           System.out.println("Load took: "+((System.currentTimeMillis() - start) / 1000.0)+" seconds");
           
           tg.addChild(model);
           model.setShowBounds(true,true);
           root.addChild(tg);
       } catch (Exception e) {
           e.printStackTrace();
       }
       
       new Thread(this).start();
   }
   
   public void run() {
       int count = 0;
       while (true) {
           try { Thread.sleep(10); } catch (Exception e) {};
       
           view.renderOnce();
           lightAngle -= 0.01;
           Vector3f dir = new Vector3f((float) -Math.cos(lightAngle),0,(float) Math.sin(lightAngle));            
           //light.setDirection(dir);
           
           modelAngle += 0.01;
           Transform3D yrot = new Transform3D();
           yrot.rotY((float) modelAngle);
           Transform3D xrot = new Transform3D();
           //xrot.rotX((float) modelAngle);
           //xrot.rotX((float) -Math.PI/2);
           yrot.mul(xrot);
           tg.setTransform(yrot);
           
           anim += 0.005f;
           if (anim > 1) {
               anim = 0;
           }
           model.setTime(anim);
           
           count++;
       }
   }
   
   public static void main(String argv[]) {        
       new TDSTest();
   }
}




this is the code i use to load the .3ds...it produce the same error to me



******************************************************
TDSLoader Debug Output
  file: model/character.3ds
******************************************************
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.io.IOException: Not found: model/character.3ds
       at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:87)
       at TDSTest.<init>(TDSTest.java:80)
       at TDSTest.main(TDSTest.java:137)
java.lang.NullPointerException
       at TDSTest.run(TDSTest.java:130)
       at java.lang.Thread.run(Thread.java:534)



any problem in my program??

15  Java Game APIs & Engines / Xith3D Forums / Re: Animation in Java on: 2004-03-09 16:59:39
im running out of time now....so i hope i can get the solution fast....now always posting my problem to all the forum i got...but no one can answer...please help me

once gain...thanks for your reply
16  Java Game APIs & Engines / Xith3D Forums / Re: Animation in Java on: 2004-03-09 16:44:56
either one...but i prefer Java3D...thanks alot...
how about in  java3d??
17  Java Game APIs & Engines / OpenGL Development / 3D Object...movement on: 2004-03-09 16:30:44
hello everyone, i just ask for a little help...how am i suppose to animate a 3d baby that i imported??
the 3d baby i created using 3dsmax...and using 3ds2java converter to convert it from .3ds to .3dj, therefore, im able to display it in java...I using Netbeans-IDE( with java3d-opengl and lwjgl)...so, can anyone teach me how to animate the 3d baby in java or java3 whatever...Thanks alot...
18  Java Game APIs & Engines / Xith3D Forums / Animation in Java on: 2004-03-09 16:06:59
hello everyone, i just ask for a little help...how am i suppose to animate a 3d baby that i imported??
the 3d baby i created using 3dsmax...and using 3ds2java converter to convert it from .3ds to .3dj, therefore, im able to display it in java...I using Netbeans-IDE( with java3d-opengl, lwjgl, and Xith3D)...so, can anyone teach me how to animate the 3d baby in java or java3 whatever...Thanks alot...
19  Java Game APIs & Engines / Java 3D / Animation in Java on: 2004-03-09 16:06:02
hello everyone, i just ask for a little help...how am i suppose to animate a 3d baby that i imported??
the 3d baby i created using 3dsmax...and using 3ds2java converter to convert it from .3ds to .3dj, therefore, im able to display it in java...I using Netbeans-IDE( with java3d-opengl and lwjgl)...so, can anyone teach me how to animate the 3d baby in java or java3 whatever...Thanks alot...
20  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-09 09:09:58
hahahaa.....i don't know what happen actually...
i usually download the source code and put it on my desktop...and run the program...

or should i put the program to c: or else???
21  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 19:09:28
JavaCoolDude's Demo the WaterSimulation can not execute...

java.lang.Error: Cannot load image Data/Water.png

please help
22  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:59:32
er...in my case...which part of my program need to modifiy???
23  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:41:38
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 Cry
24  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:37:40
oh...yaa..is JavaCoolDude's demo..wahh you are smart  Smiley

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

you know how to get it??
25  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:31:47
do you know this .jar?? where i can get it??

import display.DisplayOptions;
26  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:17:09
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
27  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:08:05
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);
28  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 18:03:43
Sorry...i still can not do it...please help me out...thanks a lot
29  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 17:54:10
The .3ds i put in here...

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

is it right?? but still can not locate the character.3ds....headache
30  Java Game APIs & Engines / Xith3D Forums / Re: Xith HelpS!!!! on: 2004-03-08 17:40:01
oh...im using NetBeans-IDE...is it ok for it?
Pages: [1] 2
 

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

The first screenshot will be displayed as a thumbnail.

atombrot (27 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!