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

Actor Animation Problem #1655

Open
Adam9174X opened this issue May 13, 2024 · 2 comments
Open

Actor Animation Problem #1655

Adam9174X opened this issue May 13, 2024 · 2 comments

Comments

@Adam9174X
Copy link

Adam9174X commented May 13, 2024

Description

the Actor Animation class has a bug, that if you change the coordinate system in panda3d, it will break the animation, i will be adding a video to show what is going on

Panda.2024-05-14.00-20-13.mp4

Steps to Reproduce

here is the code to test it:

from direct.actor.Actor import Actor
from direct.showbase.ShowBase import ShowBase
from panda3d.core import loadPrcFileData

loadPrcFileData('', 'coordinate-system y-up-left')

app = ShowBase()
pandaActor = Actor('Assets/Player.bam')
pandaActor.reparentTo(base.render)
pandaActor.loop('Running')
pandaActor.setPos(0,0,15)

app.run()

Environment

  • Operating system: Windows 10
  • Panda3D version: 1.10.14
  • Installation method: pip
  • Python version: Python 3.12
@ArsThaumaturgis
Copy link
Contributor

Based on a quick test, it looks like a model's animations are not altered to fit the current coordinate system. That is, if there a model has an animation that rotates a bone on the X-Z plane, then it rotates that bone on that plane regardless of the engine's coordinate system.

The question is: Should it be otherwise? If a model's animations are designed for a given coordinate system, and a different coordinate system is used by the project, should the engine update the animations?

@rdb
Copy link
Member

rdb commented May 14, 2024

Great question. bam is increasingly used as a storage format, and if regular models work fine in this manner, I'd argue people should expect animations to work fine as well. At least the behaviour should be consistent between the geometry data and the animation data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants