-
Notifications
You must be signed in to change notification settings - Fork 6
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
Backport load transform to older UE versions #181
Backport load transform to older UE versions #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Been tested inside UE 5.1
and the basic loading for Alembic
and FBX
products been working without triggering any errors...
However there is some issue with transforms when loading my enviro asset (which works ok inside Maya and UE 5.5)
here inside maya (note the outer shell and its transforms)
once loaded as Alembic static mesh
it got weirdly scaled and rotated (most of its parts):
I have also tried to freeze transforms for the outer shell (as it got some transforms like 100 Scale due to its origin aka been imported from other DCC, however this wasnt an issue in different UE versions)
...freezing transforms didnt produce any correct result while loaded into UE 5.1 note: FBX repre works ok tho |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No matter how hard I have tried it still produces wrong transforms... I have tried to use There is one weird finding tho...as in Checking in the asset in Really stuck on it atm, sry. Any ideas?? |
I try to find some issues of which related to the transforms when importing the Alembic. I find this quite helpful: https://forums.unrealengine.com/t/alembic-uv/368981 We could try to set -90 degree to rotation X, and then set -1 in z scale. If the scale appears to be smaller we can multiply the scales 100 like we did in OP. Will investigate more tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the check should be:
unreal_pipeline.UNREAL_VERSION.minor >= 4):
because the Maya preset doesn't work in 5.3 and custom needs to be used. With this change, import works as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested it in UE 5.1
UE 5.3
and UE 5.5
and all unreal versions works well when loading products and namely layout
products.
LGTM
…rms-to-older-UE-versions
Changelog Description
This PR is to backport load transform to older UE versions(4.27), and the new alembic conversion presets supports in Unreal 5.
https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/AbcConversionPreset?application_version=5.0#unreal.AbcConversionPreset
Also it introduces the custom alembic conversion presets of which user can choose to set it in ayon settings if the transform is still not what they want.
Resolve #179
Additional review information
Please install and build addon with this branch to update the settings
Test it in 5.1 if possible
Testing notes:
custom