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

HLMS Unlit Datablock HLMS OgreTextureAnimationController #441

Open
kariem2k opened this issue Apr 16, 2024 · 0 comments
Open

HLMS Unlit Datablock HLMS OgreTextureAnimationController #441

kariem2k opened this issue Apr 16, 2024 · 0 comments

Comments

@kariem2k
Copy link

Hello

If I want to do hordes of billboards, with animated textures based on the current state of each object (sprite sheet animation). To mimic each object in the horde has different animation, I will dot he following (CPU for now):

  • I create one(or more) huge sprite sheets with all states and frames of the animation.
  • Create BillboardSet2 for each 1000 objects or so.
  • Set a different material for each of these sets
  • use different Texture Animation controller. for each of these materials.
  • Mix all of these BillboardSet2 to overlap giving the illusion they are one big group of objects.
  • Animate these texture animation controllers with SetValue(value + random offset per group), maybe it will be also easier just to copy and modify the OgreTextureAnimationController to just take animation state rectangles (from my sprite sheet packer backend) from my code instead of controlling this with SetValue.

Just was wondering if this is an a good way to do it? Or there is something better?

Thank you

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

1 participant