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

SetTime Operation very expensive. #4

Open
michael-burk opened this issue Nov 19, 2024 · 2 comments
Open

SetTime Operation very expensive. #4

michael-burk opened this issue Nov 19, 2024 · 2 comments

Comments

@michael-burk
Copy link

Hi, thanks for this great project!
My issue is, that the SetTime Operation seems over the top expensive.
I just want to playback and animation with 20 objects. When I record all the matrices for every frame and play them back customly this is much much more efficient.

@torinos-yt
Copy link
Owner

Currently, I think SetTime is the most expensive part, since the call to SetTime evaluates and interpolates all mesh and transforms in the alembic archive.

However, if the mesh in the archive does not contain vertex animations, then the per-vertex processing should be skipped. Your alembic could have 20 Transform animation objects merged into one object that does vertex animation on export. Or VL.Alembic may not be able to handle your alembic well enough.

If you share an .abc that can reproduce the situation, i may be able to investigate (although it may take some time as it is difficult to get enough time on this project right now).

@michael-burk
Copy link
Author

Hi and thanks for your answer.
In our case we have 20 objects, just animated over scale, rotation and translation - so no vertex animation is necessary.
We can't really combine all of the objects, to not loose individual material properties.
Is there a way to skip the vertex processing in a case like that?

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

2 participants