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

Feature Request: Flipbook component for animated matierals #6830

Open
rainbj opened this issue Jan 11, 2022 · 4 comments
Open

Feature Request: Flipbook component for animated matierals #6830

rainbj opened this issue Jan 11, 2022 · 4 comments
Labels
feature/graphics/materials This item is related to materials and the material system. sig/graphics-audio Categorizes an issue or PR as relevant to SIG graphics-audio. sig/ui-ux Categorizes an issue or PR as relevant to SIG UI-UX.

Comments

@rainbj
Copy link

rainbj commented Jan 11, 2022

Is your feature request related to a problem? Please describe.
During L&BC it was noticed that simple animated materials are VERY difficult to make inside O3DE. The only possible way is doing this through ScriptCanvas. However it's not performant and its limited to about 24 frames per sec before we start seeing engine crashes. Luis made an tutorial here which will get you in the ballpark but that took several hours to set up and configure - https://youtu.be/GYXG4nrQPnE
image
By limiting this process to only people who can use ScriptCanvas you make this difficult for the most important customer. Artist. I would like to lower the bar for entry.

Describe the solution you'd like

  • A flipbook component that can take in a series of images in a sequence.
    • This component should have a flipbook size specification.
    • This component should have speed input: = 12 frames per second.
    • This component should have a loop requirement ( loop 1 once, loop x times, loop infinite )
  • A secondary requirement would allow users to specify a sprite image instead of a series of images. This would require a users to specify number of rows and columns and image size.
    image
    image

Describe alternatives you've considered
This could also be added into the material editor itself and not done on component cards depending on the level of complexity.

Additional context
Please feel free to ping me @rainbj for more details.

@rainbj rainbj added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. sig/ui-ux Categorizes an issue or PR as relevant to SIG UI-UX. labels Jan 11, 2022
@HogJonny-AMZN
Copy link

I think that first we should start with a flipbook .materialType / shader that can input the atlas flipbook texture and manages UV shifts (based on time), having params like AnimationSpeed and TotalFramesm, etc.
A component that wraps this is then a convenience, to make it easier to setup and use.
Then use script canvas to drive an instance of that material to control is state.

@forhalle forhalle added sig/graphics-audio Categorizes an issue or PR as relevant to SIG graphics-audio. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 13, 2022
@rainbj
Copy link
Author

rainbj commented Jan 15, 2022

@HogJonny-AMZN Using SC to do material animation was noticed to be slow and very limited to file size for sprites. We might want also want to build in performance improvements into the plan.

@superkitcath superkitcath added the feature/graphics/materials This item is related to materials and the material system. label Jan 19, 2022
@jeremyong
Copy link
Contributor

There's a new abstraction currently being implemented that would allow you to drive UV transforms in an efficient way to slide your UVs around an atlas each frame. This would have effectively zero overhead but would take some time to develop. Work has already started however.

@superkitcath superkitcath removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 29, 2022
@wintermute-motherbrain
Copy link

sig-graphics accepted this into the backlog on 2022-02-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/graphics/materials This item is related to materials and the material system. sig/graphics-audio Categorizes an issue or PR as relevant to SIG graphics-audio. sig/ui-ux Categorizes an issue or PR as relevant to SIG UI-UX.
Projects
Development

No branches or pull requests

6 participants