This is a test of my first python script in blender. Is a simulation of a molecular cube with blender physics game engine.
A lot it's left to do but I'm happy of the firs result.
Stats:
1000 molecules
6000 constraints
0.5 fps during simulation in bge
LogicTicRate at 250
4sec per frame to render.
test
How do I render a physics simulation ?
AcAnimate 5 months ago
@AcAnimate You just need to record animation of the game engine (bullet physic animation). A already built-in recorder exist. Put your blender in "Blender Game" instead of "Blender Render" and go in the game menu and check "Record animation". After that , if you press "P" to run your physics , all movement is record on fcurve and you can render it later. I don't know if it's what you want to know ?
PyroEvil 5 months ago
Cool! I want to learn scripting like that. Where did you learn?
d3sertst0rm 5 months ago
@d3sertst0rm I learn by myself.15 years ago old I start with Qbasic , a simple scripting code. After , with my job of cgartist , I like to code some litlle tool for me and my colleague. And for the last month I start to take a look to the blender API. But you need to know my code is probably not clean or optimal and a search a lot on google to find how to do something. Probably if a professional coder see my code the only thing he can say is " what is that mess ?! " ;-) But I continu to learn!
PyroEvil 5 months ago