-
Notifications
You must be signed in to change notification settings - Fork 44
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
Dynamicimage #495
base: master
Are you sure you want to change the base?
Dynamicimage #495
Conversation
@woelper I started looking in that and tried to render grayscale textures - which didn't work. I created them as R8, but I can't tell notan to add a swizzle mask or something else to render it grayscale. Doing "imageops::crop_imm" on a "DynamicImage" will always result in an rgba image, even if the underlying data is grayscale. I didn't find any flaws in your implementation so far. |
Thanks so much for looking at it! Regarding grey textures, that is of course bad news. Maybe we can use a shader to convert red to grey? Would it make sense to open an issue in |
I thought about asking in notan's issue section, too. Yes, we maybe could define a default shader, doing conditional conversion? |
Great! Yeah, a shader could make sense anyways for HDR and other things! |
@woelper do you know where to inject a pixel shader to do that? That's beyond my knowledge. Maybe you got some hints. Then I would try to commit a dynamic rendering for R8 at least. |
I was going to post the same URL :) I am quite happy with the progress, your idea to have a convert operator was amazing. The pixel operators and image operators already support some additional data types and you can convert on the fly between them. |
I got it for image rendering, but not for egui::image. Edit: I committed my changes, I hope it's okay for you! Due to the special behavior of imageops::crop_imm on dynamic image, I needed to match the types. Maybe you can have a look at it, if this is a bug or intention. |
@woelper is the branach dynamicimage_zoom supposed to combine the new zoom image and dynamic image? |
Hi! I tried to combine them by merging zoom into it and made it build, but I think I am missing something. If you have time maybe you can try integrating the changes from your zoom window branch directly into this one? I can delete the |
Done :) |
…th to centre scrollbar
@woelper @Stoppedpuma My work with implementing the various conversions are done and tested with and without tiling (type conversion operator is really neat for this). Please ping me if you need something :) |
I think this should be good on my end as well, I've tried to intentionally break things and I haven't encountered anything which isn't already reported. Small list of things which should be double checked or implemented on @woelper's end before merge: Making sure all build flags work Woelpers adjustments to the view original / modified button |
Language support is in, but will bloat binary. I tested compression, but that makes startup less snappy (noticeable delay in startup). I made a cleanup task to use system fonts. Also added test files for Arabic and Simplified Chinese. |
…-alt-by-default Add alt to default colour channel keybinds
What algorithm did you use for compression? Zstd should be quite fast if usable. |
I believe it was xz which is several magnitudes slower than say zstd-fast. |
@woelper Bug I just found which should be fixed prior to merge, saved edits no longer seem to load. |
One thing I found: the Histogram is currently based on rgba8, when should we change this? |
@B-LechCode Opened an issue at #606 for this to be in 0.9.3! |
Two more weird behaviours I've found 1: The colour channel can still be changed even when no images are present by simply pressing e, then a colour channel key. 2: More weirdness in the file manager depending on the size (Thumbnails shifting around, not the artifacts, the artifacts are an encoding issue with wf-recorder): scroll.webm |
No description provided.