mgschwan / blensor

Blender Sensor Simulation
www.blensor.org
Other
180 stars 47 forks source link

Is it possible to isolate blensor from blender? #31

Open Andrew-Draganov opened 5 years ago

Andrew-Draganov commented 5 years ago

I'm trying to build blensor on top of an existing Blender repository. Is there a way that you would recommend doing this? My impression is that the files for blensor are fairly disjoint from the ones necessary for blender, so it seems like it should be possible.

Thank you for the great tool!

mgschwan commented 5 years ago

It depends on the branch. If you want to apply it to the latest 2.7x branch it is rather straightforward.

The python code is in release/scripts/addons/blensor and the native python module is in src/blender/python/blensorintern

Copy those directories to your blender source and apply this patch interface.patch.gz (That's the change to the cmake files and the bpy_interface)

That should be all that's needed.

In the 2.8 branch it is not possible however, because the blender internal renderer has been removed, and that is the core of the simulator. We are working on a version for 2.8 that will use the bvh module to do the raycasting in the scene but that is currently in development and non functional yet.