YABEE and blender 2.8

I did not notice those yet. I’ll take a look over them. Thanks!

If I truly understand that animation is not supported? I converted the bam file, but I can’t play the animation again.

Animations worked with the test file I was using, and they should be supported. If a file is giving you problems, please file a bug report and attach the file.

How to add the tags in blender?

Use the -i flag to pview in order to play animations where the name of the animation doesn’t match then name of the character.

I’m probably a blender loser. I can export only one frame of animation so far. I do not see the necessary options as in YABBE for a range of frames. I already think it is worth writing an exporter egg for the blender version 2.8, than to hope for a new format. I’m afraid he does not justify the hopes as Assimp.

In YABEE, there are two ways to specify an animation, I believe:

The first is to store your animations as Blender “actions”, and to then in YABEE select “All actions as animations”. In this case, the duration of the animation comes from the keyframes defined in the associated “action”.

The second is to use the box just below the checkbox labelled “All actions as animations”. Press the “+”-button (beside the box) to add a new animation. Then, with animation selected, look just below the box: you should see a text-entry field for the animation’s name, and numeric-entry fields for the animation’s start-frame, end-frames, and frame-rate, respectively from left to right.

I mean GLTF 2.0 exporter for blender 2.8.

Ah, I see–I think that I misread your earlier comment; sorry about that, and fair enough! ^^;

Spread source 2.8 anim.blend (115.8 KB)

Option embedded:

C:\New Folder>gltf2bam anim.gltf anim.bam
Traceback (most recent call last):
  File "c:\panda3d-1.10.3-x64\python\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\panda3d-1.10.3-x64\python\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Panda3D-1.10.3-x64\python\Scripts\gltf2bam.exe\__main__.py", line 9, in <module>
  File "c:\panda3d-1.10.3-x64\python\lib\site-packages\gltf\cli.py", line 44, in main
    gltf.converter.convert(args.src, args.dst, settings)
  File "c:\panda3d-1.10.3-x64\python\lib\site-packages\gltf\converter.py", line 1115, in convert
    converter.update(gltf_data, writing_bam=True)
  File "c:\panda3d-1.10.3-x64\python\lib\site-packages\gltf\converter.py", line 132, in update
    self.load_texture(texid, gltf_tex, gltf_data)
  File "c:\panda3d-1.10.3-x64\python\lib\site-packages\gltf\converter.py", line 380, in load_texture
    uri = source['uri']
KeyError: 'uri'

Option separate :
I only get one frame of animation.

ADD: I propose to create an attached theme similar to YABBE for panda3d-gltf

The error with embedded data was already fixed, are you using the latest version of panda3d-gltf?

I have updated since this post. I’ll try again.

As a heads up, panda3d-gltf supports the old, deprecated KHR_lights extension, and not the newer KHR_lights_punctual that the Blender 2.8 glTF exporter users. I have created an issue for this, but for now, lights do not work when exporting from Blender 2.8.

After the update, the error KeyError: ‘uri’ is gone. But I still get one frame of animation. While in the web viewer model glTF 2.0 animation is played completely. I attach file.

glTF - anim.zip (2.3 MB)
bam - anim.zip (2.1 MB)

Did you make sure to select “Always Sample Animations” in the Animation tab of the exporter options?

Yes, I exported with it. I draw your attention that the web viewer displays the entire animation.

The web viewer displaying the animation doesn’t really provide much information as I am sure it supports a much wider feature set of glTF and panda3d-gltf is still rather limited. This is why care has to be taken when choosing export settings.

I am hoping to do some panda3d-gltf work, which is when I plan tot take a deeper look into your animation issue. Can you also share the original blend file please?

This is good news, my project slammed a wall, when blender yanked their game engine. It’s nice to see movement here. I will be making videos on youtube, about panda3d. check it out on ytb under shenko.org. kei bei

1 Like

@shenko I used to be a pretty heavy user of the BGE (and active contributor). If you have questions about transitioning, feel free to ping me.

1 Like