How do I render my animation to a file?

Hi there,

I am new to Panda3D and I just created an animation and want to export it? How do I go about doing that?

In what tool did you create your animation?

If you created it in Blender, you have a few options–see this thread for at least some of them:

I created in python (Pycharm IDE). I figure out how to create the egg files after hours of research using “setuptools”.

However, how can I convert the .egg to .gltf?

Thank you

Aah, I see! You created your animation using Panda itself then, I take it?

Hmm… That I don’t know, I’m afraid–perhaps one of the others will have a better idea!

Yes, I used panda itself. Thank you for trying

1 Like

@Julian Try this attempt, maybe something will come out.

After you import your animation into the blender, you can save it in any format.

I tried that and I got the following error:

Traceback (most recent call last):
File “C:\Users\ Julian \AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\”, line 59, in execute
root = context.read_file(path)
File “C:\Users\Julian\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\blender-egg-importer-master\”, line 74, in read_file
data = open(path, ‘r’).read()
File “C:\Program Files\Blender Foundation\Blender\2.80\python\lib\”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8d in position 15: invalid start byte

location: :-1

I tried scripting it in blender too and the blender program totally closes when I try to run the python script. Any thoughts on what might be causing this?

What does the egg file contain? It looks like you’re giving it some binary file, not an egg file.

Animation-0.1-py3.9.egg (800 Bytes)

Please see attached the egg file. Its just a set of cubes falling with an art texture. Sorry for the trouble, but I am very new to python and panda3d.

I think you need to be more specific. Do you want to build an app build? Take a look at asteroids, for example.

The example comes with an SDK, however you can download them here.

Looks like you got confused by Python EGG format and Panda3D EGG format. Python EGG is a Python package format, basically it’s just a ZIP file. Panda3D EGG is a 3D asset format for storing models and animations.


Ahh, I think you hit the nail on the head. I didnt realize Panda3d Egg is different (noob). How do I go about getting the panda3d animation in an egg file then?

No, I don’t want an app build. I want to store my animation in an egg file to read it in blender after.

You need to use this interface.
Then you can burn it to disk.
The documentation is not complete, you will need to learn the API yourself.

But it’s worth noting that no one guarantees 100% results. All this is unofficial.

Thank you, really appreciate it