I would like to introduce BlenderPanda, a Blender addon for Panda3D integration. Some of the features of this addon are:
Rendered Viewport (preview how Blender scenes will look in Panda)
Project quick-start (setup common directories and files for your new project)
Launch your game from inside Blender (launches as a separate application)
Automatically convert blend files to BAM files when running your game
Can be used with existing projects
Documentation for getting started with BlenderPanda can be found here.
Some known limitations:
No physics support
No PBR materials
Does not make use of Blender’s logic bricks (not sure how much of a limitation this is, but worth noting)
Blender objects that are not supported by glTF (e.g., text objects, speakers, particle systems, etc.) are not converted
BlenderPanda is still very much a work in progress, but it is time to start collecting some feedback to help prioritize development. So please, give BlenderPanda a try and let us know what you think!
While BlenderPanda can do BAM exporting, the goal of the project is to improve workflow, not to create yet another Blender to Panda exporter. In the future, the plan is to allow more export options (although this is very low priority at the moment), and to eventually replace BlenderPanda’s current BAM export process with this BAM exporter to avoid duplicate efforts.
Even if you’re using EGG exporting at the moment, the rendered viewport can still be used to preview a scene using Panda in Blender’s viewport. Also, if/when more export pipelines are support, it should be possible to take advantage of build/auto-build functionality of BlenderPanda while still using EGG.
Can you see the addon in Blender’s User Preferences?
Can you enable the addon?
Can you enable the rendered viewport?
Since I see you’re on Windows, is ppython on your PATH and can you run a Panda3D application?
On another note, animation support is now much improved. There are still some quirks to be worked out, but more complicated characters no longer degenerate into a writhing mass of verts at the origin.
Traceback (most recent call last):
File "C:\demo\game/main.py", line 6, in <module>
import blenderpanda
File "C:\demo\game\blenderpanda\__init__.py", line 1, in <module>
from .bpbase import init
File "C:\demo\game\blenderpanda\bpbase.py", line 1, in <module>
from .rendermanager import create_render_manager
File "C:\demo\game\blenderpanda\rendermanager.py", line 11, in <module>
from . import pman
File "C:\demo\game\blenderpanda\pman.py", line 1, in <module>
import configparser
ImportError: No module named configparser
This was another Python2 issue. I installed a Python2 version of Panda (which I should have done earlier), and worked through some issues. BlenderPanda should now work a lot better with Python2.
The first issue I think is due to your main.py not doing anything interesting. The generated main.py does not load any models, move the camera, etc.
For the second issue, it looks like there is an issue with the spawned Python process that runs Panda3D. Is there a different error message before those WinError 6 messages?
The addon will export all blend files in the asset directory (./assets by default) to the export directory (./game/assets). The generated main.py puts ./game/assets on the model path, but it is up to you to figure out which models you want to load. The Run Game button launches your game. If your game does nothing, then don’t expect there to be anything in the window. If you want to preview the scene as it is shown in the Blender viewport, there is the rendered viewport.
Okay, I see what’s happening now. You have no blend files saved in your asset folder. If you save the current blend file into the top level assets directory, is should start converting that file.