anyone interested in 3d dynamics (physics)

About Monkey 2 Forums Monkey 2 Development anyone interested in 3d dynamics (physics)

This topic contains 3 replies, has 2 voices, and was last updated by  abakobo 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4962

    codifies
    Participant

    Given just what a nice job has been done on MX2, “wrapping” a C API into a module is just a really nice experience (pity c2mx is windows only – unless I’m missing a trick?), it occurred to me that ODE (https://bitbucket.org/odedevs/ode/ ) has a simple C API and while not the darling of the game dev community that bullet is, it is none the less very capable, sometimes getting expected results out of bullet can be a trying experience (its a complex beast and c++ is not a favourite of mine!)

    While wrapping the whole of ODE might be a longer term project, it’s surprising what you can do with just a handful of functions…

    I’m not sure if it would work but I wonder if it might be possible to directly import the sources by using a carefully crafted header file to side step the build process (incidently side stepping the issue of having to cater for different targets…)

    I did something similar on the Wii with a small subset of the bullet sources years ago and it actually worked rather well, not withstanding the puny CPU on the Wii mind you…

    A simple example of using ODE can be seen here

    http://ode-wiki.org/wiki/index.php?title=HOWTO_simple_bouncing_sphere

    probably needs something else other that its demo drawstuff lib mind…

    Any thoughts…?

    #4977

    abakobo
    Participant

    I am! But have experience with 3D gfx with Matlab only, so very far from GL stuff that look very complex to me (one of the reasons I like mx). For me it would require a basical 3D gfx capable module before attacking 3D physics.
    I can pass C code trough c2mx2 as I have all os types on my PC.
    Seeing how fast your get things running I think your programming skills are way over mine. But I probably can help.

    #4984

    codifies
    Participant

    fast? its amazing what you can do while the wife is watching corrie and other stuff on the one eyed monster!!

    if you fancy getting glfw working for windows (shouldn’t be that hard) its up on github https://github.com/chriscamacho/glfw-MX2 drop your email into http://bedroomcoders.co.uk/contact if you have any troubles – its probably what I’ll base a simple 3d render on

    with ODE I have a text rendering! of a bouncing ball already (only about 20 functions available!)

    modern openGL *looks* complex and can be a pain to get working but once you have a simple renderer written you can abstract away all the nuts and bolts, if you can handle matlab then the math you need for shaders should be a doddle!

    #5013

    abakobo
    Participant

    In case you didn’t had the occasion to pass ode includes in c2cmx2, here is a pass. Didn’t tested anything. Just passed it. The imports are not complete (some *.h would need to be added at least)
    The attached zip contain the c2mx2 log and the json.
    I’ll have a look at your glfw stuff.
    It’s the latest ode dev version.. If you want me to pass another don’t hesitate to ask..

    Attachments:
    1. ode_c2mx2_pass.zip
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.