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

Provide Description on How to Adjust Scene Render Window #97

Closed
justacec opened this issue Apr 26, 2022 · 5 comments
Closed

Provide Description on How to Adjust Scene Render Window #97

justacec opened this issue Apr 26, 2022 · 5 comments

Comments

@justacec
Copy link

I currently have an app with an egui::SidePanel on the left and an egui::TopBottomPanel on the bottom. This is working great. Now if I go to Bevy and add an obj file and render it, I can see that the panels are simply drawn on top of the scene rendering context. What I would like is for the the rendering scene to fill the space that is not covered by the panels. So, shifted to the upper right area of the window, in this way, the world point (0, 0, 0) would be at the center of the un-paneled space. (does this make sense)

I am not sure how to make this adjustment, I have been going though the Bevy docs but did not see anything there. Thought it might be in one of the bevy_egui examples but it does not seem so.

Can this be done? If so, can you add some documentation to point peeps in the right direction? :).

@mvlabat
Copy link
Owner

mvlabat commented Apr 26, 2022

Hi! Yeah, your question totally makes sense. Quite a few people asked for the same example before, so I made one:
https://github.com/mvlabat/bevy_egui/blob/6eb02a2c8819c489fd2a509e02f25a617c042ed8/examples/side_panel.rs

And here's the video demonstrating how it works:
#30 (comment)

Let me know if that's what you were looking for and whether it helps.

@justacec
Copy link
Author

That is super cool. Thanks. I will see if that does what I was looking for (hint: I have no doubt). Only thing left to do is add it to the examples dir. :)

@mvlabat
Copy link
Owner

mvlabat commented Apr 26, 2022

It is in the example dir (the example is called side_panel.rs). But I thought about adding some kind of breakdown of the examples with their descriptions to the README, to make navigation easier.

@justacec
Copy link
Author

I will now walk to the corner and assume the fetal position for a few minutes. ;)

Sorry, I thought I looked there for an example like this but just missed it. Thanks for the pointer.

I am going to close this issue.

@mvlabat
Copy link
Owner

mvlabat commented Apr 26, 2022

No worries! It's good we sorted it out :)

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

No branches or pull requests

2 participants