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

Backport load transform to older UE versions #181

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

moonyuet
Copy link
Member

@moonyuet moonyuet commented Dec 17, 2024

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.
image
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:

  1. Try the default alembic presets
  2. Load Asset in alembic format (Animation, PointCache, Model, Layout)
  3. Switch the alembic presets to custom
  4. Load Asset in alembic format (Animation, PointCache, Model, Layout)

@moonyuet moonyuet added the type: enhancement Improvement of existing functionality or minor addition label Dec 17, 2024
@moonyuet moonyuet self-assigned this Dec 17, 2024
@moonyuet moonyuet changed the title backport load transform to older UE versions Backport load transform to older UE versions Dec 17, 2024
Copy link
Member

@LiborBatek LiborBatek left a 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)
Screenshot 2024-12-23 122739

once loaded as Alembic static mesh it got weirdly scaled and rotated (most of its parts):

Screenshot 2024-12-23 123923

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)

@LiborBatek
Copy link
Member

...freezing transforms didnt produce any correct result while loaded into UE 5.1

note: FBX repre works ok tho

@moonyuet moonyuet requested a review from LiborBatek December 23, 2024 14:48
Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still an issue with one of my object once loading the Layout with Alembic set to Maya preset aka default UE addons one.

Now its in correct scale but still rotated 90 deg... no errors in console tho.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AY-7266_Backport load transforms to older UE versions
2 participants