Odejava version 0.2

compiling-macosx.rtf is currently deprecated, the author of this document told me that new version is coming, I do not know the exact date though. This document is for earlier versions of Odejava.

But… if you got ODE compiled properly then the rest should go fine. Please check file:
odejava/odejava/compile/compiling-gcc.txt
Especially the last g++ line that links odejava library, you are missing some objects from your link command (TriMesh objects). On compiling-gcc.txt last line has all objects explicitly added as parameters to the linker. This command was used to compile linux library for current Odejava.

For last resort, here’s an extract from my mac friend’s mail:
c++ -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers -DHAVE_STRSTREAM -o libjavaode.jnilib -framework JavaVM -I include net/java/dev/odejava/ode/odejava.cpp net/java/dev/odejava/ode/odejava_wrap.cxx ode/src/array.o ode/src/error.o ode/src/memory.o ode/src/obstack.o ode/src/odemath.o ode/src/matrix.o ode/src/misc.o ode/src/rotation.o ode/src/mass.o ode/src/ode.o ode/src/step.o ode/src/stepfast.o ode/src/lcp.o ode/src/joint.o ode/src/timer.o ode/src/mat.o ode/src/testing.o ode/src/collision_kernel.o ode/src/collision_util.o ode/src/collision_std.o ode/src/collision_space.o ode/src/collision_transform.o ode/src/collision_quadtreespace.o ode/src/collision_trimesh.o ode/src/collision_trimesh_sphere.o ode/src/collision_trimesh_box.o ode/src/collision_trimesh_ray.o ode/src/fastldlt.o ode/src/fastlsolve.o ode/src/fastltsolve.o ode/src/fastdot.o OPCODE/.o OPCODE/Ice/.o

Above was used to link earlier Odejava versions (not current cvs head!), you can use the same syntax but check the objects that you give to this as parameters.

And, if you get the library compiled, send it to me by email and I’ll add it to the CVS. Even better if you can give describe the process you used to compile ODE and Odejava, I’ll add also that to the CVS.

Let me know if this does not work, I’ll ask better instructions from my MacOS friends, Jani.

If you have compiled Odejava’s native library for MacOS, please send it to me. Even better if you can give out some comments about the required process.

Compiling native library is an task that should not be required from Odejava’s users, but MacOS version is still missing from Odejava project. Current CVS contains only linux and win32 library.

If you badly need MacOS library but cannot compile one, then write a message and I’ll harass my extremely busy MacOS friend enough to get one.

what can I say - ode is almost everything I wanted! 3d physics and graphics in java! The ode->xinth transform is slightly buggy and unfinished (no support for all high level geoms - at least in 0.2 as well as some weird visual sphere deformation issues), however otherwise works perfectly for my needs.

Now we just need to add soft-body and liquid physics into ODE and into odejava and then I’ll definitely get everything I’ll ever want for a while! :slight_smile:
Keep up the good work!

[quote]The ode->xinth transform is slightly buggy and unfinished (no support for all high level geoms - at least in 0.2 as well as some weird visual sphere deformation issues), however otherwise works perfectly for my needs.
[/quote]
You might pass some more info of the bug(s) you’ve found. I’m sure there are some, due to very light testing and rapid development :slight_smile:

Yes, one might add CappedCylinder and Cylinder to OdejavaToXith3d class. I think I even have the Xith3d’s geometry code lying around somewhere…
Note that current Odejava version does not contain Cone or Terrain objects, but there’s TriMesh support that can be used e.g. for static landscape.

About the sphere deformation issues, this has to do with Xith3d only I assume? You can check org.odejava.xith3d.SphereGeometry class and change it, it’s Xith3d code only. Or just use user defined object (a’ka link to your own ASE object) to Odejava’s spheres if you wish.

Way to go ttaranov! Let me know when you have it done, I’ll gladly add it to the CVS ;D Seriously, this project has just started, if anyone want’s to join Odejava’s development team, just raise a hand :slight_smile:

Have fun and be sure to post your screenshots when you get something nice out of Odejava!