Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JOODE : Build  (Read 4275 times)
0 Members and 1 Guest are viewing this topic.
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Posted 2006-02-22 17:29:34 »

I'm trying to build JOODE, but I get the following error when running build.xml :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
Buildfile: /home/bluesky/workspace/joode/build.xml
init:
prepareBuild:
compile:
    [javac] Compiling 7 source files to /home/bluesky/workspace/joode/build/classes
    [javac] /home/bluesky/workspace/joode/src/net/java/dev/joode/test/math/CholeskyTest.java:11: cannot find symbol
    [javac] symbol  : constructor TestCase()
    [javac] location: class junit.framework.TestCase
    [javac] public class CholeskyTest extends TestCase{
    [javac] ^
    [javac] 1 error

BUILD FAILED
/home/bluesky/workspace/joode/build.xml:82: Compile failed; see the compiler error output for details.

Total time: 2 seconds


What's the matter with it ?

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #1 - Posted 2006-02-22 17:56:38 »

OK, I finally managed to build it just commenting out the offending file.
Hmm.. I find a bit odd that the SphereCollisionTest just displays Boxes instead of Spheres..  Grin
Anyway, the joints demos look pretty. Good job !

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #2 - Posted 2006-02-22 18:38:03 »

Quote
Hmm.. I find a bit odd that the SphereCollisionTest just displays Boxes instead of Spheres..  Grin

mmh yeah - that's my fault, I was just too lazy to create a new testcase for the boxes, so I simply modified it. Must then have commited accidently Wink.

But to come back to that "just" - the collision with the boxes is much harder than the one with the spheres. (Next to that we won't need it in near future anyways)

:: JOODE :: Xith3d :: OdeJava ::
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #3 - Posted 2006-02-23 12:10:49 »

Oh yeah, That must be a junit dependancy that is not plumbed into the build file. I tend to use Eclipse for my building at the moment.

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #4 - Posted 2006-02-23 17:03:37 »

Quote
Hmm.. I find a bit odd that the SphereCollisionTest just displays Boxes instead of Spheres..  Grin

mmh yeah - that's my fault, I was just too lazy to create a new testcase for the boxes, so I simply modified it. Must then have commited accidently Wink.

But to come back to that "just" - the collision with the boxes is much harder than the one with the spheres. (Next to that we won't need it in near future anyways)
OK I guessed that. But I'll do a little cleaning of the codebase anyway (adding comments, maybe a bit of refactoring : variable names aren't always meaningful).
And yeah I now it's much harder to make collision with boxes than with spheres. Anyway, it's just dealing with 6 planes, heh ? Say if one of the edge of Box 1 intersect one of the faces of Box 2 or Box2.edge intersects Box1.face there's a collision. Hmm.. anyway thomas said we can handle that with a convex collision detection algorithm. So, is it working ? Where are you with that, thomas ?

Oh yeah, That must be a junit dependancy that is not plumbed into the build file. I tend to use Eclipse for my building at the moment.
I use Eclipse too but as I saw there was a build.xml file I launched it.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #5 - Posted 2006-02-23 17:10:08 »

Yeah ... convex code is nearly there. By nearly I mean it is not there yet :-(
Its all intergrated with the code base now. I have boxes bouncing around, but sometimes they think they intersect miles away and sometimes they don't. I think there is a problem with my low level distance measures. It needs a proper set of test cases for me to debug it properly. The advanced bit is working, i.e. the heuristics, search and BSP trees. Just the normal bit isn't :-(
I will try to get it done this weekend, but I may run into more probs...

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #6 - Posted 2006-02-23 18:15:16 »

You're still trying to implement the DEEP algorithm, heh ? Or you've changed your mind ?

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #7 - Posted 2006-02-25 20:23:18 »

I have stuck with DEEP. The actual clever bits of that algorithm are not actually that hard to implement. The hard bit is getting the low level distance metrics to work correctly, and all the rotations etc. I have got a few hours now though....

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #8 - Posted 2006-02-25 22:43:47 »

I have stuck with DEEP. The actual clever bits of that algorithm are not actually that hard to implement. The hard bit is getting the low level distance metrics to work correctly, and all the rotations etc. I have got a few hours now though....
OK so good luck.
I'm currently doing a little game with JOODE and it's pretty fun. I'll use new features when they'll come. We could use it as a "featured game"

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #9 - Posted 2006-02-25 22:46:07 »

Oh exellent. Good man, we have some testing! Woo!

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kylix999

Junior Member





« Reply #10 - Posted 2006-02-25 23:24:24 »

so i found some bulids in cvs ok, but will be in oficial version also some tutorials like in old ode and javadoc?
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #11 - Posted 2006-02-26 20:55:20 »


so i found some bulis in cvs ok, but will in oficial version also some tutorials like in old ode and javadoc?
Maybe I can do some. I'm not a crack in Maths and Physics, but that I can do.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #12 - Posted 2006-02-26 21:17:40 »

I could also help out documenting Wink That's something, that
1. will make you understand the code better
2. will have very much use in the end
3. it's not so mind-tackling than writing new fancy code Wink And you don't get so easily stuck (As I got with my OctTreeSpace - I thought, I could build a Space-Structure with Subspaces and such. But now I've realized, that this will probably end up in a dirty hack. So I think I'm doing it in a way similar to how they did it in ODE) Nah - lets see - I'm currently doing so much thinking about algorithms and such (IOI training), that I rarely even start up eclipse now (And there is so much to do (i.e. because of that jogl change in Xith3d) )

So don't bother, if I'm a bit inactive Wink

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline kylix999

Junior Member





« Reply #13 - Posted 2006-02-27 11:49:16 »


i was thinking that someone could make some simple tutorials about joode use in true program for example:

- how to make connect two joints and simoulate them or something other....
- resting contacts (like box falling from sky in ode)

it can be anything  to show how to use joode , since it is first oficial bulid (in cvs) i think that you have made some code for testing etc... you could add it to cvs (and please in one jar file)
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #14 - Posted 2006-02-27 14:32:05 »

Hey. Well I was trying to simplify the construction of simulations by refactoring the test cases. So now there is a class called SimpleWorld that bundles a Xith converter with a collision system and dynamics engine and creates some nice methods like createBox() which allows a box to be placed, and a step method that handles the collision system and steps the dynamic world AND rerenders your graphics.
Fleshing out that class would be great, as it is fairly neat at the moment. As would be providing documentation for it.

Quote
it's not so mind-tackling than writing new fancy code
Hehe Arne, its harsh you had to learn the hard way. Porting is alot quicker and simpler if it can be done.

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #15 - Posted 2006-02-27 18:22:05 »

Quote
Quote
it's not so mind-tackling than writing new fancy code
Hehe Arne, its harsh you had to learn the hard way. Porting is alot quicker and simpler if it can be done.
Hehe - I know, but you don't understand the code you port half as good, as you do your own code. That was the experience I had with porting those Box-Box Collisions.

:: JOODE :: Xith3d :: OdeJava ::
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #16 - Posted 2006-02-27 22:59:30 »

Yeah. That Box Box code was nasty though. like those TST macro definitions and redefinitions. Urgh, they were unreadable...  Most of ODE is not quite that bad ... more or less :-)

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #17 - Posted 2006-02-27 23:34:32 »

Quote
Hey. Well I was trying to simplify the construction of simulations by refactoring the test cases. So now there is a class called SimpleWorld that bundles a Xith converter with a collision system and dynamics engine and creates some nice methods like createBox() which allows a box to be placed, and a step method that handles the collision system and steps the dynamic world AND rerenders your graphics.

Whoops, I had not commited that code. I have just done a lengthy merge with the current version. Lots of conflicts, but it has meant I have had to commit unworking code which I do not really like to do. But I did not have much choice. So some of the Convex code is now in there. Do not look at it yet ... it is pretty hard to read. But SimpleWorld is in there now. Its a wrapper for basic functionality. Kylix you might like to look at that....

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #18 - Posted 2006-02-27 23:49:33 »

Oh yeah ... one more final thing on SimpleWorld.java

It extends TestingWorld. TestingWorld has all the code for creating simple geometries that are connected to the graphics engine in single method calls. That is the way I want that class to work, so you can do everything in one method call. (less verboe when you are writing TestCases!)
It also allows you to link bodies with joints in one liners as well ... but only linkSlider is implemented so far. I wonder if someone could carry with adding the rest of the functionality. Try and make the methods as general as possible, and not relying on Data objects passed in too much. So lots of floats instead of vectors please. (and a method for destroying bodies and joints .... delegate to world.java)

But I would like some good functionality added to SimpleWorld as well. I would like some kind of proper implementation of a game loop. Something that automatically steps the world with a good implementation of timing. at the moment my test classes just sleep for x amount of millis, which gives inconsistant performance across different machines. I would like something that waits for a user specified time amount. Now this is not a trivial problem. Don't fall into the System.currentTimeInMillis, thread.sleep() trap. There is lots of material on these forums for doing it properly. Bundle this functionality into a asyncronous method called run(). and create a sister  method to stop the thing in a method called stop().

 

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

pw (36 views)
2014-07-24 01:59:36

Riven (37 views)
2014-07-23 21:16:32

Riven (25 views)
2014-07-23 21:07:15

Riven (27 views)
2014-07-23 20:56:16

ctomni231 (57 views)
2014-07-18 06:55:21

Zero Volt (49 views)
2014-07-17 23:47:54

danieldean (39 views)
2014-07-17 23:41:23

MustardPeter (43 views)
2014-07-16 23:30:00

Cero (59 views)
2014-07-16 00:42:17

Riven (56 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!