-
-
Notifications
You must be signed in to change notification settings - Fork 64
Notification system #23
Comments
Hi @setzer22! I've been following this project for a while. In fact, shortly before this repository appeared, I myself was thinking of doing something like this (nodes + rust + integration into engines). 🙂 |
There are already a couple of crates that would do for us: |
Oh, that prooved to be mush easier than I thought, thanks @CatCode79 🙂 |
Hi @inact1v1ty! 🙂 I'm happy to know people are following the project, it's always nice to see people show up! Sorry it took me a while to reply. Currently busy with lots of stuff, and doing some very minimal blackjack work in the background. Integrating
There are other things related to error reporting that can be made nicer. But this should be a good starting point 😄 |
Hello again @setzer22! Sadly I was not able to start working on the issue before due to personal and world-country-situation reasons. Now I'm safe and sound and have time and energy, so I'm able to continue contributing to open source and your amazing project in particular! Thank you for your tips, I'll come back later with some code done 🙂 |
Glad to hear everything's better now 🙂 Looking forward to your changes! Let me know if you find any issues. |
Hi @setzer22! Both libraries are using egui 0.19, so I decided to try to bump the version in blackjack and contribute it as a pr also. I have bumped egui, glam, rend3, wgpu, winit, and egui_node_editor and etc and have successfully fixed almost all compilation errors. I have one question though, the not-forked version of egui-wgpu doesn't have |
Okay, there are one more such thing in For both your changes I can make code compile without them, but as I understand they were made to mitigate some erroneous runtime behaviour, and I don't know exactly what behaviour and how. |
Just to clarify - in the PR with egui-0.19 I was able to work around the API changes: both |
I introduced these changes back when this code lived in egui_wgpu_backend around egui 0.15, and at the time this was necessary to get the right zooming behavior. But everything seems to work without it now? So maybe there has been some change that fixed the original issue I wasn't aware of 🤔 I need to investigate a bit further but as long as it works, the less forks we need the better! |
Well, got back to working on this and I have following thoughts:
Also, both these libraries are not so complicated. So, I think that for a program targeting to become a day-to-day tool will benefit from custom notification solution with buttons for interaction, animations and etc. |
The plan is to not necessarily recompute everything every frame. Specifically, I don't think the node graph should run and the mesh data get recomputed every frame at 60 frames per second. This is just how things are right now because I haven't gotten around to implement caching or change detection.
Indeed, with big software like this sometimes it makes more sense to bring in dependencies into the codebase so we can have better control and provide a more custom user experience. If integrating requires substantial changes, I think it's fine to just bring the code into |
Sometimes it is necessary to give a message to the user when something goes wrong (or succeeds). A good example is the "Export OBJ" node, which currently doesn't do any indication of either success or failure.
In most apps this is done by a notification system that reports messages in bubbles. The bubbles stay alive for a certain time and show the message. The user should be able to click and dismiss the bubble.
A good example of what is needed can be seen here:
This could also become a standalone helper crate for other egui apps
The text was updated successfully, but these errors were encountered: