Fixing the ODE Library and adding support for DrawStuff Library #251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
There was similar problem in ODE library like in RegexMatch case .
For ODEJoint the problem was in code:
this code passes IoODEBall_proto as IoStateProtoFunc which is then passed to:
as function pointer instead as protoId which is char *.
Changing previous line to:
It was necessary to change functions calls to all possible Joints object IODEBall, IODEHinge etc..
The second change is addition of the DrawStuff library for drawing the ODE objects, it provides visualization
of the open dynamics engine and requires much less code then OpenGL and GLUT examples.
The screenshot shows the DrawStuff example similar to dstest example in ode-0.12 distribution:
All examples with DrawStuff support are in addons/ODE/samples/drawstuff directory.
The samples are tested on my mac: 12.5.0 Darwin Kernel Version 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64 x86_64
Please can you test the examples on your configuration too. It is necessary to have drawstuff library in
/usr/local/lib/libdrawstuff.la and libdrawstuff.a
textures are saved for now in /usr/local/include/drawstuff.
Best regards,
∃t