You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Bevy to make a CAD file viewer, which means figuring out some way to use a tabbed/paned interface with Bevy rendering the contents of a tab. I think I may use egui since it seems to have good integration with Bevy, and specifically egui_dock. But what would be the best way to handle rendering within each pane? I'm wondering about things like:
Should there be a single Bevy instance or (somehow) one per pane
How do I make sure that background panes are not using extra resources
How can I deduplicate resource usage as much as possible among the panes
It seems like perhaps the best solution is to have one Bevy instance with one camera per pane, then somehow make each camera only render entities specific to that view, and don't render any cameras not in the current view. But this seems to have the downside of keeping the resources for all panes always loaded, without a straightforward way to unload inactive tabs.
So, does anyone have any advice for how to go about doing this?
Side question - is there a way to get infinite repeating sprites for cheap? Such as grid lines that
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use Bevy to make a CAD file viewer, which means figuring out some way to use a tabbed/paned interface with Bevy rendering the contents of a tab. I think I may use
egui
since it seems to have good integration with Bevy, and specificallyegui_dock
. But what would be the best way to handle rendering within each pane? I'm wondering about things like:It seems like perhaps the best solution is to have one Bevy instance with one camera per pane, then somehow make each camera only render entities specific to that view, and don't render any cameras not in the current view. But this seems to have the downside of keeping the resources for all panes always loaded, without a straightforward way to unload inactive tabs.
So, does anyone have any advice for how to go about doing this?
Side question - is there a way to get infinite repeating sprites for cheap? Such as grid lines that
Beta Was this translation helpful? Give feedback.
All reactions