Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Realtime, Non-Game Engine Physics in Blender

91

A coder by the name of Goatman has been using ctypes and ODE wrappers in python to create a new add-on that allows realtime physics interaction in blenders 3D viewport, without resorting to the game engine.

Currently the add-on is just a proof of concept, but the developer hopes to develop the idea further, adding support for ragdoll rigging, and possibly even implementing novel input devices such as the Microsoft kinect controller.

ODE-ctypes in Blender

Story via reynantem.blogspot.com

91 Comments

  1. Very good, and very nice presentation too!

    Its a pity that this overlaps Joshua's GSoC10, as some work its going to be lost, but thats open source, i guess...

  2. Très bonne présentation, et très belle aussi! Il est dommage que ce chevauchement GSoC10 de Josué, comme certains travaux sa va être perdu, mais thats open source, je suppose ...

  3. Peter Dragulic on

    finally!...:-) EVERY serious 3d app should have a separate (from the game engine) physics simulation module,imo!...to the developer >>> THANK YOU!...

  4. Peter Dragulic on

    Enfin !...:-) toutes les applications 3D graves devraient avoir un rapport distinct (à partir du moteur de jeu) module de simulation de la physique, de l'OMI! ... au développeur>> MERCI> VOUS! ...

  5. I'm little confused as part things works fast in Blender via BGE while other part of things (fluids, cloths..) works painly slow in standard Blender. I don't know if this project is on to something with accelerate fluids, cloths, particles or just its about rigid bodies? For me the priority would be to proper implementation of Bullet Physics (maybe it's just an GPU computing implementation lack?)

  6. Je suis peu confus que les choses partie agit rapidement dans Blender par BGE tout autre partie des choses (liquides, tissus ..) fonctionne painly lente dans la norme Blender. Je ne sais pas si ce projet est sur quelque chose avec accélérer fluides, chiffons, des particules ou tout simplement de ses organes sur les rigides? Pour moi, la priorité serait de bonne mise en œuvre de Bullet Physics (peut-être c'est juste un manque de mise en œuvre GPU Computing?)

  7. Wow, imagine how much easier it will be to place down clutter, without needing to resort to IPO baking and animation extraction, this has the potential to become a powerful tool!

  8. Wow, imaginez combien plus il sera facile de mettre à l'encombrement, sans avoir besoin de recourir à l'extraction de cuisson IPO et l'animation, ce qui a le potentiel pour devenir un outil puissant!

  9. @Artorp: Imagine how much easier it will be to bury a character under a pile of rocks, or roll a huge boulder down a racetrack like a bowling ball. I swear, BlenderNation found a way to read my mind. 8-o

  10. @ Artorp: Imaginez combien plus il sera facile d'enterrer un caractère sous un tas de pierres, ou rouler un énorme rocher à une piste de course comme une boule de bowling. Je vous jure, Blendernation trouvé un moyen de lire dans mes pensées. 8-o

  11. This is a cool proof of concept.

    GSoC I gave up on that one a long time ago - it rather feels like a system to get paid being in a playground but not being paid for also finishing or integrating it.

  12. C'est une preuve de concept cool. GSoC j'ai renoncé à ce sujet il ya longtemps - il se sent un peu comme un système pour se faire payer étant dans une aire de jeux, mais ne pas être payé pour également de finition ou de l'intégrer.

  13. anotherrandomcitizen on

    wow - everything in blender is not only animate-able but can be with physics too.

    as cited on the blog, "goathead " is the actual coder-guy who stitched everything for this demo.
    direct link is http://pyppet.blogspot.com/2011/05/ode-ctypes-in-blender.html
    i'm impressed by his blog, i'm sure i can learn a lot. He even works with linux environment :) A++

    terrible noisy music on the video though. i'm also a filipino but this is the 1st time i heard a kind of arab[?] music - diversity for the win.

  14. anotherrandomcitizen on

    wow - tout dans le mélangeur est non seulement faisable, mais d'animer peut être avec la physique aussi. tel que cité sur le blog, "goathead" est le codeur réelle-gars qui cousu tout pour cette démo. lien direct http://pyppet.blogspot.com/2011/05/ode-ctypes-in-blender.html je suis impressionné par son blog, je suis sûr que je peux apprendre beaucoup de choses. Il fonctionne même avec l'environnement linux:) A + + musique bruyante terrible sur la vidéo si. Je suis aussi un Philippin, mais c'est la 1ère fois i entendu une sorte de musique arabe [?] - La diversité pour la victoire.

  15. la preuve de concept Awesome! J'espère que cela se intégré! anotherrandomcitizen @: Je viens de coupé le son.

  16. The music in the background was partially taken from TRON Legacy, that part of music used is a copyright of Daft Punk!

  17. La musique en arrière-plan a été partiellement pris de TRON Legacy, cette partie de la musique utilisée est un copyright de Daft Punk!

  18. GPL and open source should not teach that everything is free and anyone can take anything and make everything without permission of author. If we are creating 'open source culture' then we should also have respect to (C) copyright intellectual property law, Especially bearing in mind that even GPL license itself is copyrighted.

    It would be nice to not post anything that could be considered as an piracy or intellectual property infringement.
    Unless the maker of that video would get a written agreement of the original intellectual property owner
    the use and remixing of someone else's work is an infringement and can be considered illegal...

  19. GPL et l'open source ne doit pas enseigner que tout est gratuit et n'importe qui peut prendre n'importe quoi et tout faire sans l'autorisation de l'auteur. Si nous voulons créer une «culture open source», alors nous devrions aussi avoir du respect pour (C) droit de la propriété intellectuelle du droit d'auteur, en particulier en gardant à l'esprit que même licence GPL elle-même est protégé par copyright. Il serait bon de ne pas afficher tout ce qui pourrait être considéré comme un piratage ou la contrefaçon de la propriété intellectuelle. A moins que le fabricant de cette vidéo serait d'obtenir un accord écrit du propriétaire de la propriété intellectuelle d'origine de l'utilisation et le remixage de quelqu'un d'autre le travail est une infraction et peut être considéré comme illégal ...

  20. Rectifier, it seems you have been mis-informed.
    The GPL is all about respecting the wishes of the author.
    If you do not abide by the author's wishes you have no
    right to use the code. It is the same with the
    Creative Commons licenses, and all the other "free"
    licenses. Free means "free within the terms of the license"
    not "free to do anything at all."

  21. Rectifier, il semble que vous avez été mal informés. Le GPL est tout en respectant les souhaits de l'auteur. Si vous ne respectez pas par volonté de l'auteur que vous n'avez pas le droit d'utiliser le code. C'est la même chose avec les licences Creative Commons, et tous les autres "libre" des licences. Et cela signifie «libre dans les termes de la licence" et non "libre de faire quoi que ce soit."

  22. BGE has always crash on my machine,
    I am so glad that something like this comes along.
    Hope that this will be available soon.
    Yet another reason to Jump to Blender2.5

    Thank you for your hard work.

  23. BGE a toujours crash sur ma machine, je suis tellement heureux que quelque chose comme ça arrive. Espérons que ce sera bientôt disponible. Une autre raison de Aller à Blender2.5 Merci pour votre travail acharné.

  24. So what happens if you delete (or forget to add) a ground? Everything with physics would fall into the abyss!

    hope undo would work so you don't got to re-position everything. I wonder how much undo steps it would use...

  25. @Caronte
    active physics appears in the addons but i am unable to activate it, cant check the little square.
    i cant find installation instruction on developer's site.
    Blender is changing so fast maybe i need an older or newer version but i have limited bandwidth.

  26. @ Caronte physique active apparaît dans les addons, mais je suis incapable de l'activer, il ne peux pas vérifier le petit carré. i cant trouver les instructions d'installation sur le site du développeur. Blender change si vite peut-être j'ai besoin d'une version plus ancienne ou plus récente, mais j'ai une bande passante limitée.

  27. anotherrandomcitizen on

    @roofoo

    well, how would i know if the music stopped and author speaks up at the middle or end?
    He can just tone it down - or maybe next time.

    @rectifier

    The music is likely used without permission [unless proven otherwise] and I'm sure he knows it is not free.
    But he likely thinks he won't be persecuted because daft punk videos are used [non-commercial] all over by youtube users too.
    Sad but true, this seems to be a common practice.

  28. anotherrandomcitizen on

    @ Roofoo bien, comment pourrais-je savoir si la musique s'est arrêtée et l'auteur prend la parole au milieu ou la fin? Il suffit de baisser le ton - de temps ou peut-être prochaine. @ Redresseur La musique est susceptible d'être utilisée sans autorisation [sauf preuve du contraire] et je suis sûr qu'il sait qu'il n'est pas libre. Mais il pense sans doute qu'il ne sera pas persécuté parce que les vidéos Daft Punk sont utilisés [non-commercial] partout par les utilisateurs de YouTube aussi. Triste mais vrai, ce qui semble être une pratique courante.

  29. snowcovered99 on

    this looks really cool, i hope this guy adds all the functionality he hopes to do, the ragdoll rigging and kinect implementation things sound interesting too. i do get tired of using the game engine for physics stuff

  30. snowcovered99 on

    cela ressemble vraiment cool, j'espère que ce gars-là ajoute toutes les fonctionnalités qu'il souhaite faire, le gréement ragdoll et la mise en œuvre des choses kinect son intéressant aussi. Je ne me lasse pas de l'aide du moteur de jeu pour la physique des choses

  31. :D is there a reason for this? well okay now you can shure drop some stuff into your szene but i´m not shure if it is needet XD can you animate it?

  32. : D est-il une raison à cela? et bien maintenant vous pouvez shure baisse des choses dans votre szene mais je suis pas sure si elle est XD needet peut l'animer?

  33. This, combined with Verse, could turn Blender into a really fun multiplayer game! Like, playing ping-pong and stuff like that.

  34. Ceci, combiné avec le verset, pourrait se transformer en Blender un jeu multijoueur très amusant! Comme, en jouant au ping-pong et des trucs comme ça.

  35. THANK YOU! THANK YOU! THANK YOU! THANK YOU! Its not that I don't like the game engine, because I think its awesome too. But I always forget that rigid bodies requires the game engine and think it would make a lot of sense if rigid bodies was just another physics type like soft bodies. I'm sure a lot of you feel the same. The Blender development team should work on making this an official feature.

  36. MERCI! MERCI! MERCI! MERCI! Ce n'est pas que je n'aime pas le moteur du jeu, parce que je pense de son génial aussi. Mais j'oublie toujours que les corps rigides exige le moteur du jeu et pense que cela ferait beaucoup de sens que si des corps rigides était juste un autre type physique comme les corps mous. Je suis sûr que beaucoup d'entre vous pensent la même chose. L'équipe de développement de Blender devrait travailler à rendre cette fonction officielle une.

  37. MerovingianBee on

    Very interesting add-on. Not sure I gonna use it until I see possible applications for its realtime features.

  38. MerovingianBee on

    Très intéressant add-on. Pas sûr que je vais l'utiliser jusqu'à ce que je vois les applications possibles pour ses fonctionnalités en temps réel.

  39. THANK YOU for another great feature in Blender! Amazing!!

    Of course I wanted to play around with it, but could not get it to work. I use OSX (latest version) and Blender 2.57b.
    In the Add-on-menu it appears, but it is not possible to activate it. A warning in the Add-on description says:
    "Warning: requires ... libode.dylib (osx)"

    Where can I get this and where to put it?

  40. MERCI pour une autre grande caractéristique de Blender! Amazing! Bien sûr, je voulais jouer avec elle, mais ne pouvait pas le faire fonctionner. J'utilise OSX (dernière version) et Blender 2.57b. Dans l'add-on-menu apparaît, mais il n'est pas possible de l'activer. Un avertissement de la macro complémentaire sur la description dit: "Attention: il faut ... libode.dylib (OSX):« Où puis-je obtenir cela et où le mettre?

  41. It's simply awesome! At least it's very useful when you need to create some compelx and realistic scene with a variety of objects' placements... So it's no need to tweak it manually using this addon!

  42. Thank you so much for the positive response! Goatman and I are really pleased with the results so far. Of course, it still has its limits, but once development gets its momentum, surprises are yet to come.

    With my recent conversations with Goatman, I was able to try the add-on and it is so darn impressive.

    I wish I would be able to lead you through a Windows guide, but just try to fill the gap. However, to install the add-on under a Linux system, do the following:

    - install the add-on
    - install the dependencies

    To install the add-on, simply copy the contents of the .zip file into your addons directory. For example, I had the files copied to my directory at /home/reyn/Documents/apps/b25_stable/blender-2.57b-linux-glibc27-i686/2.57/scripts/addons

    To install the dependency, open your terminal and type 'sudo apt-get install libode-dev'.

    Once the above requirements has been satisfied, fire up Blender and go to your User Preferences > Addons > View3D, then activate Active-Physics.

    If you select an object in Blender, you will now see new options under the physics panel.

    Hopefully soon to come will be better documentation and some guides. ;)

    -Reyn

  43. I still can't check/tick the Active Physics tab in Blender's user preferences. I installed libode-dev and put the extracted files in the addons directory. No luck. This is in Ubuntu 10.4. All the other addons can be ticked.

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×