godot icon indicating copy to clipboard operation
godot copied to clipboard

A way to turn off the material preview in the Inspector?

Open Megalomaniak opened this issue 10 years ago • 12 comments

Operating system or device - Godot version: Godot 2.1, any OS.

Issue description (what happened, and what was expected): This is a feature request.

I don't really like the new shader material preview in the inspector, I am already previewing my materials in the viewport and it's kind of a waste of space in the inspector, IMO.

Illustration

Since I couldn't find an option for it: Would it be possible to get an option to turn it off in the Engine Settings > Inspector Tab.

:sparkles: Pretty please? :sparkles:

Megalomaniak avatar Sep 19 '16 00:09 Megalomaniak

I am using a large spritesheet and when clicking on the node godot will freeze for 200 to 600ms (dependent on how large the spritesheet [texture] is). Only happens when the sprite is using a large texture. So +1 from me for an option to disable 2d texture and material thumbnail previews

ghost avatar Sep 19 '16 01:09 ghost

That freeze looks like something that should be handled asynchronously.

Zylann avatar Sep 19 '16 12:09 Zylann

I want to help with this issue and have done some research. The reason for freeze is synchronous resource loading in function ResourceLoader::load() (see call stack below) 1 ResourceLoader::load resource_loader.cpp 160 2 EditorNode::load_resource editor_node.cpp 515 3 FileSystemDock::_file_option filesystem_dock.cpp 951 4 FileSystemDock::_select_file filesystem_dock.cpp 594 What is the best way to deal with this problem: make loading async or just check for hidden preview before loading?

serhiikurson avatar Nov 30 '16 10:11 serhiikurson

It seems like easy fix for freeze is not possible because resource properties are not available without loading. So as I can see

So +1 from me for an option to disable 2d texture and material thumbnail previews

can't give expected result (absence of freeze)

serhiikurson avatar Nov 30 '16 15:11 serhiikurson

is this still relevant for v3?

nunodonato avatar Jun 02 '17 14:06 nunodonato

@nunodonato Well, unless the UI in 3.0 is radically different, yes I would expect this to be relevant still. Note that the opening post is about saving screen real-estate more than anything else. Mind you this is just a guess since as a windows user i can't test 3.0 as of right now. It doesn't really run on windows(7 x64 SP1 here, using GeForce 750m on the laptop and RX480 on the desktop) for me yet, lots of openGL related errors( #8148 ).

Megalomaniak avatar Jun 02 '17 23:06 Megalomaniak

Still reproducible/relevant in 3.1 master 9ad1800 : there's no way to hide preview. see: https://github.com/godotengine/godot/pull/10659#issuecomment-325485551

ghost avatar Apr 06 '18 11:04 ghost

I checked the #10659 mentioned above. This is closed one and the post said "fixes #6542". So Im wondering if this is also fixed or not.

kimjiy9607 avatar Dec 20 '19 00:12 kimjiy9607

@kimjiy9607 It seems this is still not implemented as of 3.2 beta4.

Calinou avatar Dec 20 '19 01:12 Calinou

Unless I misunderstood the issue, this can be considered fixed. Clicking smaller preview hides/shows larger preview. In 4.0: Capture88 On clicking smaller preview- Capture89

In 3.2.1: Capture90 On clicking smaller preview- Capture91

Anutrix avatar Jun 27 '20 09:06 Anutrix

Indeed, this was fixed in 3.1.

akien-mga avatar Jun 27 '20 09:06 akien-mga

Since proposals now belong elsewhere this should have indeed been closed a while ago.

@Anutrix If collapsing the preview also hides all the parameters then it is not an acceptable solution. The whole point was to not have the preview waste screen real-estate while wanting to browse the parameters in the inspector.

Megalomaniak avatar Jun 27 '20 15:06 Megalomaniak