4
$\begingroup$

I wanted to Build a physical Game in sense of having an external sensor like heart rate or light sensor sending data to Blender engine and use these data to move object or do something within the game so is there a way Blender can handle external sensors

Thanks in advance

$\endgroup$
  • 1
    $\begingroup$ I was able to do this with an Arduino, I don't know if it would work without. $\endgroup$ – Scalia May 23 '15 at 14:51
  • $\begingroup$ so its possible with Arduino then i am good with that but how to do it i mean the code that used by Blender to open the port and communicate with Arduino $\endgroup$ – MXA Music May 23 '15 at 16:22
2
$\begingroup$

While i havent seen it doen inside the game engine, it has been done inside blender. there is a great stack exchange answer here How to move an Arduino's servo motors using Blender?

To use this in the game engine you would need to modify the python code to use the game engine modules, and connect it as a python script controller in the game panel.

$\endgroup$
0
$\begingroup$

This sample maybe userful

https://github.com/OpenDevice/opendevice-examples/tree/master/opendevice-3d-blender

It makes the integration with OpenDevice(Java) and Blender (Python)

Allowing you to make any kind of communication with the Arduino (Bluetooth, USB, ethernet, wifi), the OpenDevice does the dirty work

https://www.youtube.com/watch?v=b3PbOPIMHmY

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.