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

Pixel art mode for AniMe Matrix #1648

Closed
KelseyHigham opened this issue Nov 25, 2023 · 13 comments
Closed

Pixel art mode for AniMe Matrix #1648

KelseyHigham opened this issue Nov 25, 2023 · 13 comments
Labels
question Further information is requested

Comments

@KelseyHigham
Copy link

KelseyHigham commented Nov 25, 2023

Is your feature request related to a problem? Please describe.
i'd like to draw pixel art on the AniMe Matrix, but G-Helper's diagonal setting defaults to showing images at less than the full width of the Matrix.

Describe the solution you'd like
i'd like to pick a gif that's the Matrix's exact resolution (on the 2023 G14, that's 64x39), click diagonal, leave the slider at 100%, and have the image occupy the whole Matrix.

Describe alternatives you've considered
a checkbox for "pixel-perfect" that's independent of the slider would work too. or have the slider snap to a full-Matrix value.

Additional context
this 2023 G14 template works without modification on Armory Crate. it would be cool if it worked perfectly on G-Helper too, so that people can share images that work in both programs.

G14-2023-template-AC G14-2023-template-AC-blank

Armory Crate, diagonal, default scaling:

Armory Crate

@KelseyHigham
Copy link
Author

KelseyHigham commented Nov 25, 2023

in the meantime, for people like me, here's a 2023 G14 G-Helper template:

G14-2023-template-GH G14-2023-template-GH-blank

it looks like this:

IMG_5086

but it would be nice to have access to the full horizontal width, especially for text!

@seerge
Copy link
Owner

seerge commented Nov 26, 2023

@KelseyHigham hello, cool that you have figured out how to resize template :) current logic was that origin on a matrix is bottom left corner.

I may look into shifting it to the left (outside of visible space), and extending width to cover other side as well.

@seerge
Copy link
Owner

seerge commented Jan 24, 2024

@KelseyHigham hello, try this build. Your original template should work fine now as well, as other pictures.

It was quite difficult to find a good middle-ground between automatically fitting any filling matrix with picture
GHelper.zip

@seerge seerge added the question Further information is requested label Jan 24, 2024
@KelseyHigham
Copy link
Author

it's mostly correct! but there's a bit of bleed from the far left column to the column immediately to the right of it
6ED45B4F-9172-46EA-985E-E617C1AE73A0

@KelseyHigham
Copy link
Author

i don't see similar bleed anywhere else

@KelseyHigham
Copy link
Author

oh actually, it's weirder than that
in this image, the green column is inside the matrix, and the blue column isn't visible.
but for some reason, the green column is lit by both pixels in the green column, and pixels in the blue column
G14-2023-template-broken
G14-2023-template-broken-upscaled

@seerge
Copy link
Owner

seerge commented Jan 27, 2024

@KelseyHigham hello, just select different scaling method from a dropdown :) image is resized / fitted anyway, it's not being shown on a pixel perfect level.

@KelseyHigham
Copy link
Author

changing the scaling method doesn't work! the issue isn't scaling
it's that the data for those pixels is getting drawn from the wrong part of the image

@KelseyHigham
Copy link
Author

if i make the pixels in the blue column completely white, then the pixels in the green column become completely white. they're not like gray from bleed, they're just taking the data directly from the blue column

@seerge
Copy link
Owner

seerge commented Jan 27, 2024

@KelseyHigham well, i don't know the reason for that and don't know how to fix currently.
I have tried bunch of different pictures and they look ok, so i looks extremely minor as for me :)

If you want to tinker with it by yourself

public void GenerateFrameDiagonal(Image image, float zoom = 100, int panX = 0, int panY = 0, InterpolationMode quality = InterpolationMode.Default, int contrast = 100)

:)

@KelseyHigham
Copy link
Author

got it! there's a pretty easy workaround so it's not a huge deal, and it's a big improvement from before.

thank you! it's nice to have the full canvas to work with now :)

@seerge
Copy link
Owner

seerge commented Jan 27, 2024

@KelseyHigham i guess I have actually figured it out.

Try this build
GHelper.zip

Reason was integer division of -1 on 2 giving 0, instead of -1 (as it was needed) :)
ca8531c

@seerge seerge closed this as completed Jan 27, 2024
@KelseyHigham
Copy link
Author

that works! hell yeah thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants