Best approach to have blender update meshes in background...

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

dvochin
Posts: 46
Joined: Mon Aug 20, 2012 9:39 pm

Best approach to have blender update meshes in background...

Postby dvochin » Wed Nov 28, 2012 10:13 pm

Hi Blender Gurus!

For an upcoming game I’m designing (not using BGE), I need Blender to modify some meshes in the background while the game is running. In other words, I need blender to perform its magic on a few meshes with the game renders the updated meshes with the player completely oblivious that Blender is doing some work in the background.

What is the recommended simplest way to do this?

- Should I compile Blender in my exe, hide its window and serialize the meshes through C++ structures?
- Should I write Python scripts to launch Blender in hidden mode and serialize the meshes to my C++ executable through Python and TCP/IP sockets?

Which approach is best? Is there a sample or code framework that does something like I’m trying to do?

(I’m a pretty good C++ developer and should have no problem serializing the meshes between my game and blender)

Many thanks for any hint you can offer!!

Dan,

Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 1 guest