Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 [3]
  ignore  |  Print  
  Added realistic physics engine for Xith3d (ODE)  (Read 9164 times)
0 Members and 1 Guest are viewing this topic.
Offline Kevdog

Junior Member





« Reply #60 - Posted 2003-12-08 17:58:40 »

For OdeCar (which is a lot of fun) I found it much easier to use a chase view, so I added the following:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
                } else if (camera == 4) {
                    // Chase Camera
                   viewCenter = odeCar.getObjectPosition(4);
                    viewLocation = odeCar.getObjectPosition(4);
                    viewLocation.x -= 0;
                    viewLocation.y -= 0f;
                    viewLocation.z += 3f;
                   
                    viewCenter.x += 0;
                    viewCenter.y += 1f;
                    viewCenter.z += 3f;

                    view.getTransform().lookAt(viewLocation, viewCenter,
                        new Vector3f(0, 0, 1));
                   
                    Matrix3f m = odeCar.getObjectRotation(4);
                    Matrix3f m2 = new Matrix3f();
                    m2.rotX((float) Math.PI / 2);
                    m.mul(m2);
                    view.getTransform().setRotation(m);

                    Vector3f chaseV = new Vector3f(0, 10f, 50f);
                    Transform3D chaseT3D = new Transform3D();
                    chaseT3D.set(chaseV);
                    view.getTransform().mul(chaseT3D);
                   
                   
                }


and

1  
2  
3  
4  
        case '4':
            camera = 4;

            break;


This adds the "traditional" chase view found in most driving games these days Cheesy

There are only 10 types of people, those who understand binary and those who don't!
Offline Jens

Senior Member




Java for games!


« Reply #61 - Posted 2003-12-09 11:34:41 »

Is the jar still broken? I get the same error like before (UnsatisfiedLinkError: new_dWorld) and it works fine without the jar.

Suggestion: It's probably better to either make the windows native library a seperate download or include the linux and mac library in the full download.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #62 - Posted 2003-12-09 12:21:41 »

I am planning to spend some time with Odejava later in this week.

The package certainly needs some work as the current one is more an temporary solution. Will add linux and macos libraries to odejava-0.1.2 package aswell.

Other important thing is CVS that I need to set up to odejava.dev.java.net.

PS. Kevdog, good going! Tell me when you got new car simulation ready Smiley  I've build an human body (crash test dummy from 3dstudio) that can dropped in a boxstack, it's pretty funny.

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Kevdog

Junior Member





« Reply #63 - Posted 2003-12-09 20:08:02 »

I'm totally new to ODE, though I had seen it before, but wasn't interested since it wasn't Java.  Maybe I'll have a snoop around as I really like messing with Physics Cheesy

There are only 10 types of people, those who understand binary and those who don't!
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #64 - Posted 2003-12-17 10:06:34 »

I write Odejava related post one more time to this thread just to remind everyone that Odejava discussion is moved to Physics forum.

See the link below:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=physics;action=display;num=1070980274;start=0

I just wrote some guidelines and ideas on how to proceed with this Project.

Hopefully Xith3d and Java Physics guru's join to Odejava's physics thread and share their comments especially when the new Odejava version is out.


Hope you all have nice Christmas, Jani
Pages: 1 2 [3]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (81 views)
2013-05-17 21:29:12

alaslipknot (91 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.355 seconds with 21 queries.