Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KHR_animation_pointer from hook #2285

Open
marwie opened this issue Jul 18, 2024 · 4 comments
Open

KHR_animation_pointer from hook #2285

marwie opened this issue Jul 18, 2024 · 4 comments
Labels
enhancement New feature or request hook

Comments

@marwie
Copy link

marwie commented Jul 18, 2024

Describe the bug
TRS animation should be converted to KHR_animation_pointer but it's not

To Reproduce
Steps to reproduce the behavior:

  1. Open blendfile
  2. Export and enable Animation Pointer / Convert TRS
  3. See glTF is not converted

Expected behavior
Animation is using KHR_animation_pointer for TRS

Screenshots
image

image

.blend file/ .gltf (mandatory)

KHR cube.zip

Version

  • OS: win 10
  • Blender Version 4.2
	"animations":[
		{
			"channels":[
				{
					"sampler":0,
					"target":{
						"node":0,
						"path":"translation"
					}
				}
			],
			"name":"CubeAction",
			"samplers":[
				{
					"input":4,
					"interpolation":"LINEAR",
					"output":5
				}
			]
		}
	]
@marwie marwie changed the title Animation is not exported as KHR_animation_pointer TRS Animation is not exported as KHR_animation_pointer Jul 18, 2024
@marwie
Copy link
Author

marwie commented Jul 18, 2024

Is there documentation on what can now be animated and how to export? I've briefly tested exporting a material color animation without success.

khr tests.zip

@julienduroure
Copy link
Collaborator

Hello,
I agree that documentation still need to be enhanced.

As you can see in your screenshot, the animation pointer panel is greyed when using the "Action" animation.

Because of Blender animation data model (for now), you can't export easily animation pointer data without a full bake mode: "NLA track" or "Scene".

@marwie
Copy link
Author

marwie commented Jul 18, 2024

Ah this should maybe be visible in the UI or tooltip.

Is it possible to export animations using the KHR animation extension from an extension (by invoking the exporter methods directly)? I assume this is also limited by the animation data model?

@julienduroure
Copy link
Collaborator

Renaming this task to follow the enhancement about animation from extension

@julienduroure julienduroure added the enhancement New feature or request label Jul 23, 2024
@julienduroure julienduroure changed the title TRS Animation is not exported as KHR_animation_pointer KHR_animation_pointer from hook Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hook
Projects
None yet
Development

No branches or pull requests

2 participants