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?
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
@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\blender-egg-importer-master_init_.pyâ, 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\importer.pyâ, line 74, in read_file
data = open(path, ârâ).read()
File âC:\Program Files\Blender Foundation\Blender\2.80\python\lib\codecs.pyâ, 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.
https://docs.panda3d.org/1.10/python/distribution/setuptools-examples
The example comes with an SDK, however you can download them here.
https://www.panda3d.org/download/panda3d-1.10.10/panda3d-1.10.10-samples.zip
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.
https://docs.panda3d.org/1.10/python/reference/panda3d.egg#module-panda3d.egg
Then you can burn it to disk.
https://docs.panda3d.org/1.10/python/programming/internal-structures/other-manipulation/writing-models-to-disk#the-egg-interface
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