Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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]
1  Discussions / Jobs and Resumes / Robotics research assistant at Fordham.edu on: 2006-03-07 19:46:03
Hi there
attached is my resume
if you think you have a good offer to me
please contact me with details
thanks
2  Game Development / Game Mechanics / Mass vs Weight in ODE on: 2006-03-07 19:44:24
hi there
any one knows how ode work with wight and mass
i am geting some uncomfartable results and i need to know whether
ode is calculating the mass and we should just creat things with the weight or we have to convert it and do it our selfs
where the formula is w=m.g
thanks
3  Game Development / Game Mechanics / Re: Basic startup problem... on: 2006-01-31 23:29:41
hi there folk
i guess i figured how to make it work
here is a snap shot of the code that need to be corrected Smiley


**************************************************

import javax.vecmath.*;

import org.odejava.*;
import org.odejava.collision.*;
import org.odejava.ode.Ode;

public class BasicOdejavaExample {

   private World world;
   private Space space;
   private JavaCollision collision;
   public static final Vector3f gravity = new Vector3f(0f,-9.82f,0f);

   // Loads the Odejava library (optional but will though an error
   // sooner if it can't be found.
   static {
      System.loadLibrary("odejava");
      Odejava.getInstance();

   }

// add the the Odejava.getInstance () after the System.loadLibrary("odejava"); statement



thanks and good luck
4  Game Development / Game Mechanics / Re: Basic startup problem... on: 2006-01-31 23:12:59
here is also a screen shot of the classpath
incase if u need to see it
thanks
5  Game Development / Game Mechanics / Re: Basic startup problem... on: 2006-01-31 23:02:39
yes
as a matter of fact am trying to run the example on the tutorial
just for the record i am using windows xp
thanks


here is its header....

import javax.vecmath.*;

import org.odejava.*;
import org.odejava.collision.*;
import org.odejava.ode.Ode;

public class BasicOdejavaExample {

   private World world;
   private Space space;
   private JavaCollision collision;
   public static final Vector3f gravity = new Vector3f(0f,-9.82f,0f);

   // Loads the Odejava library (optional but will though an error
   // sooner if it can't be found.
   static {
      System.loadLibrary("odejava");
   }


and does have in it self the      System.loadLibrary("odejava");
6  Game Development / Game Mechanics / Re: Basic startup problem... on: 2006-01-31 22:50:10
hi there
i am geting the same dWorldCreate() error
i added the odejava.dll to the classpath
and got the log4j and it i am still geting the same error

can u please help thanks
here is the run time exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: dWorldCreate
        at org.odejava.ode.OdeJNI.dWorldCreate(Native Method)
        at org.odejava.ode.Ode.dWorldCreate(Ode.java:526)
        at org.odejava.World.<init>(World.java:112)
        at BasicOdejavaExample.<init>(BasicOdejavaExample.java:65)
        at BasicOdejavaExample.main(BasicOdejavaExample.java:141)
Press any key to continue . . .

7  Game Development / Game Mechanics / how to represent a complex 3d object on odejava ??? on: 2006-01-30 01:02:08
hi there
i was wondering if any one knows how to represent a complex 3d object "being created on 3ds max and imported to xith3d using .ase file " on odejava??

here is what i did if u need to know ..
i used 3ds max to creat a three legged robot
i exported it and saved as a .ase file format
i loaded to xith3d using the ASE loader
and now i am stuck on how to represent this object in odejava

is there is a way that u can tell odejava to load the object in xith3d automaticaly

the details of the object is very important .. as it is not used for games it is used for simulation .. therefore i need to get all the details in the display to its counterpart object in odejava


thanks a lot
8  Java Game APIs & Engines / Xith3D Forums / how to represent a complex object display in odejava ?? on: 2006-01-30 00:32:38
hi there
any one knows how to bind a very complex object " been created on 3ds max and then exported to Xith3d using  .ase file "
the object is very complex to build in xith3d
and also i can not use a box or any of the odejava object to represent it "as it will be used for a simulation so efficiency is very important"


the object is a three legged robot

i created using 3ds max

now i want to represent it on odejava

thanks
9  Java Game APIs & Engines / Xith3D Forums / Re: Ase Loader Tutorial - Troubleshoot.... on: 2006-01-27 22:26:26
thanks guys
i found it out very simple but my eyes were blind
here is the correction
public class TriLegged
{

   private BranchGroup tri_legBG;

   public TriLegged ()
   {

      try
      {


         /*
          * Loads the ASE file
          */
         AseFile af = new AseFile();
//         BufferedReader br = null;

         try
         {
            // Attempts to read the file normally
      //      br = new BufferedReader(new FileReader("tri_legged.ASE"));
            tri_legBG = af.getModel("tri_legged.ASE");

         }
         catch (IOException e)
         {
            // Attemts to read file from JAR
            URL url = this.getClass().getClassLoader().getResource("tri_legged.ASE");
   //         br = new BufferedReader(new InputStreamReader(url.openStream()));
         }

//         AseReader r = new AseReader(br);
//         af.parse(r);

//         tri_legBG = new BranchGroup ();  THIS IS WAS THE PROBLEM  IT SHOULD BE TAKEN OUT WITH THE REST OF THE CODE AS IS
THANKS


10  Java Game APIs & Engines / Xith3D Forums / Re: Ase Loader Tutorial - Troubleshoot.... on: 2006-01-27 21:58:49
hi
i tried the getModel () it compiled and when i run it nothing showed up on the screen
just black background window open with nothing in it
here is my code

import com.xith3d.loaders.ase.*;
import com.xith3d.scenegraph.*;
import javax.vecmath.*;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.IOException;
import com.xith3d.render.*;
import com.xith3d.render.jogl.*;
import com.xith3d.loaders.texture.*;

import java.net.URL;



public class TriLegged
{

   private BranchGroup tri_legBG;

   public TriLegged ()
   {

      try
      {


         /*
          * Loads the ASE file
          */
         AseFile af = new AseFile();
//         BufferedReader br = null;

         try
         {
            // Attempts to read the file normally
      //      br = new BufferedReader(new FileReader("tri_legged.ASE"));
            tri_legBG = af.getModel("tri_legged.ASE");

         }
         catch (IOException e)
         {
            // Attemts to read file from JAR
            URL url = this.getClass().getClassLoader().getResource("tri_legged.ASE");
   //         br = new BufferedReader(new InputStreamReader(url.openStream()));
         }

//         AseReader r = new AseReader(br);
//         af.parse(r);

         tri_legBG = new BranchGroup ();



      }
      catch (Exception e)
      {
         e.printStackTrace();
      }

      VirtualUniverse u = new VirtualUniverse();
      View v = new View();
      Locale l = new Locale();
      u.addLocale(l);
      u.addView(v);

      TransformGroup tg = new TransformGroup ();
      tg.addChild(tri_legBG);
      l.addBranchGraph(tri_legBG);
      l.addBranchGraph(tri_legBG);

      RenderPeer rp = new RenderPeerImpl();
      CanvasPeer cp = rp.makeCanvas(null,300,200,32,false);
      Canvas3D canvas = new Canvas3D();
      canvas.set3DPeer(cp);
      canvas.setView(new View());
      v.addCanvas3D(canvas);
      v.getTransform().lookAt(new Vector3f(-250,150,-150),   new Vector3f(-0,0,150),    new Vector3f( 0, 10, 0));

      float tankAngle = 0;
      float turretAngle = 0;

      for (int i = 0;i < 500;i++) {
         if (i < 100 || (i > 200 && i < 300)) {
            tankAngle += 0.1f;
         } else if (i > 300) {
            tankAngle -= 0.1f;
         }

         if ((i > 100 && i < 160) || i > 350) {
            turretAngle -= 0.05f;
         } else if (i > 160 && i < 350) {
            turretAngle += 0.05f;
         }

         v.renderOnce(); // renders the scene

         {
            // Rotates the whole tank
            Transform3D tr = new Transform3D();
            tg.getTransform(tr);
            tr.rotY(tankAngle);
            tg.setTransform(tr);
         }


         // Sleeps some time
         try { Thread.sleep(50); } catch (Exception e) {e.printStackTrace();}
      }

      // loop forever
      for (;Wink {
         v.renderOnce();
      }


   }

   public static void main (String [] args)
   {
      new TriLegged();
   }


}

11  Java Game APIs & Engines / Xith3D Forums / HOw to load a simple one group ASE file using getModel () on: 2006-01-26 00:51:49
i have been tring to use the getModel () and  i got this run time exception
any one know how to fix it
here is my code:-->



import com.xith3d.loaders.ase.*;
import com.xith3d.scenegraph.*;
import com.xith3d.test.*;
// Renderer
import com.xith3d.render.*;
import com.xith3d.render.jogl.*;
import com.xith3d.loaders.texture.*;

import javax.vecmath.*;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.IOException;

import java.net.URL;

public class CrudeTank {


   private BranchGroup tri_legBG;
   private AseFile af ;

   public CrudeTank ()
   {

      try
      {

         af = new AseFile();
         BufferedReader br = null;

         try
         {
            

            br = new BufferedReader(new FileReader("tri_leged.ASE"));
            tri_legBG = af.getModel("tri_legged.ase");


         }
         catch (IOException e)
         {
            
            URL url = this.getClass().getClassLoader().getResource("tri_leged.ASE");
            br = new BufferedReader(new InputStreamReader(url.openStream()));
         }

         AseReader r = new AseReader(br);
         af.parse(r);
      }


      catch (Exception e)
      {
         e.printStackTrace();
      }

      
      VirtualUniverse u = new VirtualUniverse();
      View v = new View();
      com.xith3d.scenegraph.Locale l = new com.xith3d.scenegraph.Locale();
      u.addLocale(l);
      u.addView(v);

      l.addBranchGraph(tri_legBG);

      Transform3D t3D = new Transform3D();
            t3D.rotXYZ(  (float)Math.PI/4,
                        (float)Math.PI/5,
                        (float)Math.PI/2);// this is not to dynamicly rotating the object but it is to put it in the angle
                        // desired for example if you leave it at 0,0,0 then u will see a box not the 3d shape of a cube

      // we add the TransformGroup  to the BranchGroup
      TransformGroup tGroup = new TransformGroup(t3D);
      tri_legBG.addChild(tGroup);//transformGroup contain transform3d is added to the branchGroup

      // we compile the BranchGroup to turn it into Render Friendly
      tri_legBG.compile();



      RenderPeer rp = new RenderPeerImpl();
      CanvasPeer cp = rp.makeCanvas(null,640,480,32,false);
      Canvas3D canvas = new Canvas3D();
      canvas.set3DPeer(cp);
      v.addCanvas3D(canvas);


      v.getTransform().lookAt(
                           new Vector3f(0,0,2.41f),                   // location of the eye "where u see it from"
                           new Vector3f(0,0,0),                  // center of view
                           new Vector3f(0,1,0));

      v.startView();
      System.out.println("done");


   }

   public static void main (String []args)
   {

      new CrudeTank();
   }

}



and this is the exception i get

java.lang.NullPointerException
        at CrudeTank.<init>(CrudeTank.java:93)
        at CrudeTank.main(CrudeTank.java:151)
Exception in thread "main" java.lang.NullPointerException
        at com.xith3d.scenegraph.Locale.addBranchGraph(Locale.java:103)
        at CrudeTank.<init>(CrudeTank.java:113)
        at CrudeTank.main(CrudeTank.java:151)
Press any key to continue . . .
12  Java Game APIs & Engines / Xith3D Forums / xp problem on Xith on: 2006-01-15 06:32:32
i am runing the test  example on WIN XP and j2dk 1.4.2 and it compiles fine and when it run the window disappear right after it is created ??
any one have an idea
thanks
13  Game Development / Game Mechanics / Re: odejava and static objects on: 2006-01-12 17:26:10
hi Rane
i guess i did get every thing to work but  i did not know for the same problem u faced before
which is i tried to run the HighLevelApiExample.java
and it gave me no graphics but a spining command line .. but after i read the answer for your question it is clearer now

however the file you attached CopyOfOde2XithTest2.java

gave me an error when i try to compile it

C:\Documents and Settings\mali\Desktop\New Folder\CopyOfOde2XithTest2.java:106: cannot resolve symbol
symbol  : variable TestUtils
location: class CopyOfOde2XithTest2
        Geometry geom = TestUtils.createQuad(
                        ^
1 error

Tool completed with exit code 1


14  Game Development / Game Mechanics / Re: [OdeJava] Example with Xith - More simplistic on: 2006-01-11 21:28:36
hi Matt

thanks  a lot for your help
however i got an error when i tried to compile your attached file
here is the error
C:\Documents and Settings\mali\Desktop\New Folder\CopyOfOde2XithTest2.java:114: cannot resolve symbol
symbol  : variable TestUtils
location: class CopyOfOde2XithTest2
        geom = TestUtils.createQuad(
               ^
1 error

Tool completed with exit code 1
15  Game Development / Game Mechanics / Re: odejava and static objects on: 2006-01-11 19:29:25
i got ur idea
here is my question :
hi there
i wonder if u can help me on finalizing the odejava instalition
for me every thing seems to be in its place but for some reason i can only compile the odejava   .java files but when running them it gives me a run time error
here is what i did
i added the odejava.dll to C:\j2sdk1.4.2_10\jre\bin  and i also tried adding it to the C:\j2sdk1.4.2_10\jre\lib\i386
in some examples the first config tend to give me a command prompet text spining with no grapgh, but the i386 config gave me always a run time error
so i kept it on the  C:\j2sdk1.4.2_10\jre\bin 

i added the the .jar files to the C:\j2sdk1.4.2_10\jre\lib\ext "except for the odejava.jar and the odejava_xith3d.jar i added them to different dir and added them to the classpath as well so it java can refer to them without including them on the java.exe command
i attached a pic so i can see what am talking about
please i will appreciate it if you can answer me as soon as possible
thanks
16  Game Development / Game Mechanics / how to install and configure odejava ?? on: 2005-12-27 21:14:59
hi all
i tried all possible ways to get odejava to work
and i could not succeed
can any one tell me how can i do that?
thanks
17  Game Development / Game Mechanics / need help on odejava-Java3D configuration on: 2005-12-25 06:55:34
hi all any one here can tell me how to get every thing installed
so i can compile any odejava-java3d file
thanks a lot
please email me if u can help
m_ali_alex@yahoo.com
18  Game Development / Game Mechanics / Re: [Odejava] Java3D binding! on: 2005-12-25 06:51:48
can any one tell me how to configure odejava-java3d
i am having hard time here on the first steps
thanks a lot


Hello,

Paul Byrne emailed me a BSD licensed Java3D binding for Odejava and I have uploaded this to odejava.dev.java.net.

Check it out here:  https://odejava.dev.java.net/servlets/ProjectDocumentList?folderID=1837

He notes:
Quote
The physics seems to work OK but the visuals don't match
the Xith3D example, the Appearances need to be tweaked and I've run out
of time to mess with it.

If needed we can move the files into version control.

Thanks Paul!

Cheers,

Will.
19  Game Development / Game Mechanics / Re: odejava and static objects on: 2005-12-22 22:19:18
can you please help me on getting odejava
i can not get it to work
thanks
m_ali_alex@yahoo.com
20  Game Development / Game Mechanics / Re: Alternatives to ODE ? (pure java) on: 2005-12-22 22:00:01
hi there
there is a software that you have to buy it 
it is also a 2d not 3d
here is the link if you would like to buy it + an example for it
http://forum.java.sun.com/thread.jspa?threadID=551306&messageID=2737622



mean while if you got any inof about how and where to use odejava
i will be very greatful if you can pass it to me
m_ali_alex@yahoo.com
thanks
21  Game Development / Game Mechanics / Re: Alternatives to ODE ? (pure java) on: 2005-12-22 21:59:04
hi there
there is a software that you have to buy it 
it is also a 2d not 3d
here is the link if you would like to buy it + an example
mean while if you got any inof about how and where to use odejava
i will be very greatful if you can pass it to me
m_ali_alex@yahoo.com
thanks
22  Game Development / Game Mechanics / i need odejava help on: 2005-12-22 21:10:31
hi there
i was trying to access the odejava.org and it is not existing
can some one help me on where to find the odejava and how to get to work
i am working on a research on fordham uni and i am trying to convience the prof to use odejava
so i have one week to get thing going other wise i have no chance
all what i need is to compile one file and run it
thanks a lot
please if you have an idea email at
m_ali_alex@yahoo.com
thanks
23  Game Development / Game Mechanics / Re: Troubles, how to get started ? on: 2005-12-22 21:09:41
hi there
i was trying to access the odejava.org and it is not existing
can some one help me on where to find the odejava and how to get to work
i am working on a research on fordham uni and i am trying to convience the prof to use odejava
so i have one week to get thing going other wise i have no chance
all what i need is to compile one file and run it
thanks a lot
please if you have an idea email at
m_ali_alex@yahoo.com
thanks
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (31 views)
2014-04-15 23:08:23

BurntPizza (28 views)
2014-04-15 08:46:01

UprightPath (43 views)
2014-04-14 22:39:50

UprightPath (26 views)
2014-04-14 22:35:47

Porlus (42 views)
2014-04-14 20:48:38

tom_mai78101 (64 views)
2014-04-10 09:04:31

BurntPizza (124 views)
2014-04-09 04:06:04

tom_mai78101 (224 views)
2014-04-05 18:34:39

trollwarrior1 (190 views)
2014-04-04 17:06:45

CJLetsGame (198 views)
2014-04-01 07:16:10
List of Learning Resources
by SHC
2014-04-18 08:17:39

List of Learning Resources
by Longarmx
2014-04-08 08:14:44

Good Examples
by matheus23
2014-04-05 18:51:37

Good Examples
by Grunnt
2014-04-03 20:48:46

Good Examples
by Grunnt
2014-04-03 20:48:37

Good Examples
by matheus23
2014-04-01 23:40:51

Good Examples
by matheus23
2014-04-01 23:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 20:22:30
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!