From time to time I go to re-visit some projects I keep track of. This week I resumed working in a BGE (Blender Game Engine) project and decided to test if the file would work online. How so? Burster is a webplugin for the BGE that allows you to embed (and even secure) your .blend files in a website.
Burster got some really good upgrades lately, and not it works as a plugin is expected to (it tells the user a new version is online, suggest it to update, …). So what you see next is a screencapture of the Nereus Program (the project I’m working on, aka my day job) website.
Where you see this Baltic Visualization box, it’s a BGE application running. Cool, right? Before someone ask if this is all realtime let me explain. This is a fancy videoplayer made in the BGE to play videos (also made with Blender, but not necessarily). It’s all about point-click, animate, sync videos, … Next you can see the same file running in the BGE with Physics debug on.
In order to have this going I had to:
- pack all the textures in the file
- open all the external scripts (originally in //scripts/) in the Blender Text Editor
- remove all the ‘from . import’ from my scripts (the modules were calling each other)
- fix all the python module controllers:
for obj in bpy.data.objects:
for cont in obj.game.controllers:
if cont.type == 'PYTHON' and cont.mode == 'MODULE':
cont.module = cont.module.replace('script.', '')
Note: not all modules/python functions are supported. Read the are Security page in the Burster plugin site.
And I did all my tests locally. Mainly because I had to hardcode the address of the videos in my harddrive. I believe it may be (or it will at some point) possible to load videos from the server. I’m yet to find the right solution for this.
For questions on Burster please refer to their website 😉