-
Notifications
You must be signed in to change notification settings - Fork 27
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: Use SMX files for rendering animated units #100
Comments
This is really cool! Especially the colour coding idea. Currently we give all units from the same game version / expansion the same colour, but it doesn't have to be that way. The main issues I currently see, which are probably all fixable, are:
|
@HSZemi Thanks for the response! To address each point:
If you think this is a viable idea, I'm happy to work on the asset prep scripts and perhaps even some react components that accept an SMX resource, palette info and some sizing & positioning metadata. |
Well I do think this is a viable idea 😊 |
With the new SLD graphics format in the upcoming patch, it looks kinda grim for the forseeable future though 😦 |
Yep! Certainly a spanner in the works 😄 |
I am interested in this because I want to draw animated units in my aoe app. @HSZemi How are you generating the .apng files at the moment? Do you have a script for that? @Sam152 The last commit on your repo is from May 2022. Were you able to implement some of the planned features since then? Did microsoft change the format from SMX to SLD? Is there a new parser for that? |
@denniske I imagine most people are using SLX studio for working with the game assets. Which features are you interested in? With regards to caching in-memory bitmaps of rendered assets, that can be implemented by the consumer of the library. I also have an example of that here: https://github.com/Sam152/aoe2-micromania/blob/main/src/common/drawing/SlpManager.ts |
@Sam152 Yes, I am interested in the bitmap caching. I will check SLP manager for this 👍 And I am also interested in the file size reduction by reading the SMX data and writing out a subset of the frames for one direction. Did you have success with that? I guess for react native I can use react-native-skia: |
Never ended up implementing a tool to slice out orientations, no. Given your requirements, it may be easier to export the specific images you require from SLX studio. |
I created a project for rendering SMX files, see: https://github.com/Sam152/genie-smx and demo: https://sam152.github.io/genie-smx/
I was wondering if it could be useful for the animation mode:
Ultimately it may not be worth the additional complexity, but I thought it was worthy of a mention.
The text was updated successfully, but these errors were encountered: