-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
[3.x] Editor 3D view mesh stats #88207
Conversation
In blender, turning on option 'scene statistics' shows these stats on the status bar, alongside the blender version. |
If you're able can you also make a similar meshs stats pr for master. It's not necessary, but it would make my day. |
If you have to list the meaning of every shortened word there's a bit of an usability issue. It's not exactly clear what those mean and it's worse for other languages. Perhaps it would be nice to show a tooltip on hover, listing the abbreviations and what they stand for. |
Yup this is very valid. Another idea might be to replace the shortened words with icons, and then have a tooltip (translated into local language). I'm not very good at creating icons / editor UI. We could simply turn off the display of vertex format in this PR and leave it to a followup, as the vertex format seems the most "bike-sheddy", and may benefit from a more UI focused contributor (providing the internal mechanisms to get the format is preserved from this PR). UPDATE: I've commented out so removed the vertex format line for now, either for follow up PR or if we can decide best how to do this (so to keep this PR in an "approvable" state). |
1aa37a1
to
2a2c4e0
Compare
I had a little time today and I managed to get it displaying the format with icons with tooltips. This is probably more sensible than text, although I discovered I have zero god given artistic or technical talent at creating SVG icons so would need someone else to create these. The vertex format icons still need a bit more polishing up so I'm content to leave displaying vertex format to a follow up PR. |
The numbers displayed would benefit from thousands separators, but I think we should add a String method for that as it would also be useful in a lot of places in the editor. Making it i18n-friendly without increasing binary size a lot (due to ICU data) will be challenging though, unless we stick to supporting only a handful of languages. Edit: Pull request opened for 4.x: #89424 |
Absolutely, but there is a danger of feature creep here. It may be better suited to an enhancement PR for general use in the engine - requiring bikeshedding etc independently due to the different internatial standards, and as you say there are several user interface areas which could potentially benefit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (rebased against 3.x
60ff43b), it works as expected.
However, when moving a node with View Selected Info enabled, the Translating: ... text will appear below the View Selected Info panel:
I suggest moving this text to the right when View Selected Info is enabled.
Ah good point 👍 , I did suspect there might be some GUI elements that might overlap but it was kind of hard to figure out. I'll see if I can move one or the other.
Good idea. |
2a2c4e0
to
0e7db36
Compare
The text for the messages (like "translating" etc) turns out to be drawn directly to a surface for the whole view as far as I can see, so to move them I'd either have to write some code for their placement, or put them in a However I realised there was a much simpler way to deal with this, simply by hiding the selected info when the message is active. This seems to work fine (there's a slight delay after hiding the message before the selected info appears again, but it looks fine). So I've pushed with this latest version. This was a very simple change (spatial_editor_plugin.cpp, line 2777), effectively:
|
0e7db36
to
e60468a
Compare
f383430
to
562c12c
Compare
I've tested this and it looks a bit strange, since it takes several seconds for the mesh stats to appear again: simplescreenrecorder-2024-04-20_21.58.34.mp4Could the delay be shortened a bit, or could we move the mesh stats box upwards (regardless of whether there's actually a message)? It might look a bit strange, but I think this is better than hiding information. |
Similar to information window, add a small optional window to display face count and other stats.
562c12c
to
bdf0f78
Compare
There's now no delay. The delay was caused by the message timing code which has been slightly adjusted to add a special case for NULLing out the message (which happened when you stopped moving an object). The previous version was actually bugged for two reasons:
Fixing this meant the
The reason I'm trying to avoid moving the text (rather than relying on timing) is two fold:
|
Thanks! |
Similar to information window, add a small optional window to display face count and other stats.
Implements godotengine/godot-proposals#248
Vertex Format
Is supported internally but display of the line is commented out for now in the source code so we can leave to a follow up PR. See discussion in later comments.
Notes
View Selected Info
in the 3D window (defaults to off).MeshInstance
andMultiMeshInstance
so far.Discussion
One thing that could be worth improving is that it currently doesn't have a label to tell you this box is for the selected objects. I'm hoping it's kind of obvious, once you have it switched on. Colors could be changed to distinguish it from the Information label. Position wise I don't know if anything else uses the lower left 😀 , I don't use anything else regularly that does.
Also I'm happy to hear other suggestions where to put this info in the editor, am happy to change. This seemed to work pretty well so far though.