![]() |
libODE and GIMPACT vs OPCODE (car jumps around? look here) - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: libODE and GIMPACT vs OPCODE (car jumps around? look here) (/showthread.php?tid=782) Pages:
1
2
|
libODE and GIMPACT vs OPCODE (car jumps around? look here) - joevenzon - 09-14-2007 R1845 has support for ODE compiled with GIMPACT. If your OPCODE-compiled ODE makes your car jump around or you have other weird collision-related bugs (road is bumpy, fall through road, etc), then we'll need to add an option to the scons files to set a #define for LIBODE_OPCODE, which should fix the problem (see track.cpp line 947). - abs1nth - 09-14-2007 yes this revision is quite unusable with OPCODE ODE as the car jumps around like crazy. anyway, i've recompiled the osx framework for ODE with GIMPACT which seems to work fine ![]() - xTs - 09-14-2007 Hi, with opcode the car is dancing here, too. With gimpact i get a segfault and this: http://paste.debian.net/37095 tried it with the debian lib of ode, with self compiled 0.8, with self compiled 0.8.1rc1 and the svn version. Always a segfault. - joevenzon - 09-14-2007 As I mentioned above it should be easy for someone who knows how to use scons (i.e., not me) to add an option to scons so that opcode works fine. About the crash with gimpact enabled... that's very odd. It's crashing when trying to compute the AABB, which is just a bunch of if-then-else statements. - alex25 - 09-14-2007 joevenzon Wrote:About the crash with gimpact enabled... that's very odd. It's crashing when trying to compute the AABB, which is just a bunch of if-then-else statements. i bet he's running on a 64 bit machine. i am and getting the same crash. i'll try it later tonight on my 32 bit laptop and if it works i'll try to debug it. it's probably some funky size of pointer to type vs type problem but i haven't been able to find it yet (i am still trying to familiarize myself with the gimpact code). --alex-- - alex25 - 09-14-2007 alex25 Wrote:i bet he's running on a 64 bit machine. i am and getting the same crash. i'll try it later tonight on my 32 bit laptop and if it works it works on my 32-bit laptop so i'm sure it's a 64-bit problem. --alex-- - xTs - 09-15-2007 alex: you are right, i'm running a 64bit machine. Must be related to this, cause i had an comparable error with another game. Would be nice, if you can fix this. (I guess its a problem of ode not of vdrift) - FFuser - 09-16-2007 Code: Index: SConstruct use with "scons opcode=1", I do not have any idea how to detect it automagically Btw: driving in the sand gives strange results (Opcode, 64 bit) - joevenzon - 09-16-2007 R1848 has the SConstruct change nathan posted above. I also fixed the driving off-track, I think (I didn't test it, but I'm pretty sure it's fixed). - xTs - 09-17-2007 Did a short test, works. Thanks! - alex25 - 09-17-2007 xTs Wrote:Would be nice, if you can fix this. (I guess its a problem of ode not of vdrift) i've given up for the time being, i recompiled ode without the gimpact code, set opcode to 1 in vdrift SConstruct. and now i can run vdrift again on my 64-bit machine. i'll keep looking into the gimpact code and if i come up with a solution i'll let you guys know. but first i need to come up with the patch for the skybox drawing offset. --alex-- - alex25 - 09-17-2007 alex25 Wrote:i've given up for the time being i managed to find a patch: http://fluid.mech.kogakuin.ac.jp/~minnie/Research/ODE/ode-0.8-amd64.diff but it doesn't quite work, i still get a seg fault. might be a good starting point if somebody else wants to take a look at this. --alex-- - xTs - 09-17-2007 Uhm... maybe i know the problem already: Someone didnt write this lib for multi architekture use: +#define GINT int32_t +#define GUINT uint32_t Well, you should always use int32_t if you write code... - alex25 - 09-17-2007 xTs Wrote:Uhm... maybe i know the problem already: that's what the patch does (and then some). but it's not enough, you still get a seg fault. --alex-- - xTs - 09-18-2007 Will try the patch and have a closer look at ode... |