Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
2009/12/18 Greg Ewing : > deavid wrote: > >> ODE collisions work, when using single precision libraries of ODE. >> >> But it fails in the following tutorials: > > I don't know whether it's related to your problem, > but I've found that trouble can arise if you're > not using the same version of ODE that the code > is expecting. Annoyingly, ODE always installs itself > under the same name by default, despite there being > important differences between versions. > > -- I think it's not a version problem, but I'll check anyway; it's strange that ode terrain collisions always works when compiled with pyrex 0.9.6.8 and never with 0.9.7.2 and later (different machines produce same result). Pierre, take in account that the last patch submitted DOES NOT solve the problem at all. It is using a function which is not in the ODE's documentation to make things work, and only for Terrain VS Spheres. (the tutorial will work) With a little change it is possible to make it work with any geom, but the problem is still there. I have to check if the C file generated by Pyrex is really placing the function pointer in the struct, because ODE is acting like reading null from that variable. anyway, there are several parts of soya that I wish to comment about. ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
deavid wrote: > ODE collisions work, when using single precision libraries of ODE. > > But it fails in the following tutorials: I don't know whether it's related to your problem, but I've found that trouble can arise if you're not using the same version of ODE that the code is expecting. Annoyingly, ODE always installs itself under the same name by default, despite there being important differences between versions. -- Greg ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
Finally i'have the last patch to make ode collisions with terrains and non-pushables working. I'm attaching the patch. I hope this will be enough to have soya shipped some day compiled with pyrex 0.9.8.x terrain-collisions.patch Description: Binary data ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
It would be very helpful if someone could apply the patches (at least the first one) and see what happens. I tried this on 3 machines (2 Debian, 1 Ubuntu) and the only difference is in the Ubuntu box, where i don't have a single-precision version of ODE's libraries. ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
Re: [Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
On Thu, Dec 17, 2009 at 12:01:11PM +0100, deavid wrote: > Hi, > I'm working very hard to have Soya compiled using latest Pyrex 0.9.8.5 Thank you very much > At least, these patches will make soya compilable with that version of > pyrex, but it is not perfect. That's a great start > ODE collisions work, when using single precision libraries of ODE. > > But it fails in the following tutorials: > > ** python tutorial/ode-collision-4-pushable.py -- FAILS -- returns: > Exception exceptions.TypeError: "'soya._soya.Contact' object does not > support item assignment" in 'soya._soya.collide_callback' ignored This work fine with older pyrex version. I hope > ** python tutorial/ode-collision-7-hit_func-3-contacts.py -- FAILS -- returns: > File "tutorial/ode-collision-7-hit_func-3-contacts.py", line 38, in > soya.MAIN_LOOP.events > AttributeError: 'NoneType' object has no attribute 'events' Hum strange. I'll try to investigate this to the end of the week. It's strange to have code running without MAIN_LOOP defined > ** python tutorial/ode-collision-8-terrain.py --FAILS-- balls pass > through terrain. It should be the same item assignement issue. > ** python tutorial/ode-collision-9-box.py --FALLS-- objects pass > through floor. and an error in shell: > Exception exceptions.TypeError: "'soya._soya.Contact' object does not > support item assignment" in 'soya._soya.collide_callback' ignored idem > ** the rest of examples seems to be working sweet. (but we really need a serious test suite.) > I will work to have these working too. Thank you very much again. -- Pierre-Yves ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user
[Soya-user] Patches to Soya3D that allow compiling with latest Pyrex
Hi, I'm working very hard to have Soya compiled using latest Pyrex 0.9.8.5 At least, these patches will make soya compilable with that version of pyrex, but it is not perfect. ODE collisions work, when using single precision libraries of ODE. But it fails in the following tutorials: ** python tutorial/ode-collision-4-pushable.py -- FAILS -- returns: Exception exceptions.TypeError: "'soya._soya.Contact' object does not support item assignment" in 'soya._soya.collide_callback' ignored ** python tutorial/ode-collision-7-hit_func-3-contacts.py -- FAILS -- returns: File "tutorial/ode-collision-7-hit_func-3-contacts.py", line 38, in soya.MAIN_LOOP.events AttributeError: 'NoneType' object has no attribute 'events' ** python tutorial/ode-collision-8-terrain.py --FAILS-- balls pass through terrain. ** python tutorial/ode-collision-9-box.py --FALLS-- objects pass through floor. and an error in shell: Exception exceptions.TypeError: "'soya._soya.Contact' object does not support item assignment" in 'soya._soya.collide_callback' ignored ** the rest of examples seems to be working I will work to have these working too. 0001-Correct-pyrex-bug-typecast-functioncall.patch Description: Binary data 0002-Allow-to-compile-Pyrex-sources-without-.svn-folder.patch Description: Binary data 0003-Add-new-GL_ERROR-message.patch Description: Binary data 0004-restore-old-version-of-laser.render-because-the-new-.patch Description: Binary data ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user