Studio Physics Demo + Constraint Strings (+Mouse Grab)

(Phymec) #1

BGE physics playground with (pseudo) photography studio lighting. Includes constraint strings example code, keyboard + mouse interaction / grab, set to initial.

Youtube video: Studio Physics Real-Time Demo + Constraint Strings - Blender + Bullet

Download (updated for 2.66a!!): http://pasteall.org/blend/20546 (let me know if there is a better place for me to post it)

0 Likes

(martinsh) #2

beautiful!
excellent use of BGE & bulletphysics.

0 Likes

(CTBM) #3

Very nice, SSAO is not compatible with nVidia. Works with alternate filter though.

0 Likes

(Bernardo) #4

wow great work! I confirm that SSAO do not work on my 670gtx. Still didn’t try alternative filters thou.

Another thing… how do I turn around the sight? With the mouse? Because it doesn’t work for me… I can move with WASD RF, but I cannot look around with the mouse.

0 Likes

(Naxela) #5

Hold down the middle mouse button to look around.


As for the filters, everything works fine here - Both DOF and SSAO working fine on an old nVidia GeForce 9300m GS.

All in all, very interesting and beautiful demo :slight_smile:

0 Likes

(Bernardo) #6

o man… it was written in the second line… sorry!

Thank you very much! :slight_smile:

0 Likes

(martin.hedin) #7

:spin:

This is AWESOME! Thank you thank you thank you!

This is a python newbie goldmine! I don’t know, this has so many great implications, I will have to rethink my realtime archviz, because this could really be useful!

5 stars!

0 Likes

(1D_Inc) #8

That’s so exciting! Thank you!

0 Likes

(Herbert123) #9

Lol, this is great - made me smile.
I managed to put some of the horses back on their “feet”:

And a nice demonstration of the BGEs’ capabilities.

0 Likes

(Abdullah Al-Dar) #10

Amazing work! I can’t believe how smooth it runs even when I spawned many objects.

0 Likes

(jokegred1) #11

Amazing… But how did you do the lights? I tried for ~hour to figure out how you did it, still confused. Does it have something to do with textured area lights?

0 Likes

(martin.hedin) #12

I have four feature reguests that I think would really improve this demo!

  1. ALT key - Would let you control your grabbed object on an XY plane on the current Z position. This would be an easier way to control objects in depth, rather than using SHIFT and CTRL, because you could measure the current height of another object and then know that when you move around you will keep that Z height locked.

  2. SPACEBAR - toggle between mouselook and grab pointer. Middle mouse button is a bit tedious. Default would be mouselook.

  3. Any key close to WASD - Lets you activate the grab pointer when held down, in contrast to SPACEBAR. this would only work when you are in mouselook mode.

  4. When in mouselook mode you can still grab things with the middle pixel of the screen, you could add a little crosshair, like a little ring or something. ALT key would still work the same as in pointer mode, and objects move as you move the camera.

This would make the demo much more intuitive, and I would love to see the code for this, I haven’t figured out yet how to make these changes, I am still a newbie on python :wink:

It is just two point lights and one spotlight. Press ALT+H to unhide the lamps. The shading is set to GLSL, check Render > Shading in the Properties panel.

0 Likes

(polygonesrus) #13

Long live the mighty blender

0 Likes

(Phymec) #14

Updated StudioPhysicsDemo.blend for 2.66a at top of thread (not that different).

Some may be interested in my latest related video about: Bullet Physics Collision Margins and Shapes

0 Likes

(martin.hedin) #15

I learned alot from that video, perfect crash course in how to use the Bullet engine! +1

0 Likes

(Hans.P.G.) #16

Hi @Phymec,

Thank you so much for sharing your .blend!!!
I found you first at https://www.youtube.com/watch?v=BGAwRKPlpCw with lots of interesting and beautiful videos.
After watching several of them, I really wanted to know how it was done.
Now I can see the source file, I’m willing to dive into your artwork and technique. Thanks again.

PS
I’m also using Bullet in Blender (Robot, Pole Standing, ), but my skill is not so high. I will learn from your .blend~

0 Likes

(springthing) #17

Thanks, Phymec! This is great stuff for people like me who are new to this world of Blender, graphics, and simulation. The physics engine is very interesting to me, and I picked up a lot of info about it in a short amount of time by watching some of your videos. I demand that you make more videos. As if that would work, but you get the idea.

0 Likes

(Mr Blender) #18

Absolutly amazing…i had tons of objects on my screen with no lag at all…JUST WOW!!!

0 Likes

(algala) #19

download link is broken…
any alternatives ???

0 Likes

(martin.hedin) #20
0 Likes