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

Lookup-texture style animations #141

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

guysv
Copy link

@guysv guysv commented Jan 26, 2024

Basically I watched https://www.youtube.com/watch?v=HsOKwUwL1bE and figured having tools within rx to do LUT pixel art animations can be cool.

I wanted to hear if you will be interested in merging such a feature.

Here's the demo:

demo2.mp4

I got plans to improve the UX and allow exporting the lookup table, and the lookup-table animations in a standalone spritesheet.

Guy Sviry added 4 commits January 26, 2024 18:33
* add `lt/on` `lt/set` commands to set view as each other's lookup
  textures
* add lookuptex.{vert,frag} shaders to render the lookup
* generate initial lookup table values in `lt/on` views
* had to refactor Renderer.view_data into RefCell values
  * so other views could be referenced during the redering.

Note this is a pretty alpha stage, just got the shader to work really.
More work is needed to pack this in a sane user experience.
Add vec2(1/512) to lookup uv calculated from texture to ensure we land
mid-pixel when sampling the final texture
@lowagner
Copy link

@guysv not to butt in where i'm not wanted, but i might be interested in merging such a feature on https://github.com/lowagner/pim. i have made a ton of changes since rx went silent, however, so it probably won't be a simple copy paste. if you're interested in updating to the other style, you are more than welcome, but if not please leave this branch around for me to take notes on.

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

Successfully merging this pull request may close these issues.

2 participants