-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Revamp material editing on the importer dialog #7238
Comments
Like the idea, that would be usefull for me especially when prototyping and just want to change color on the fly for tests. |
@JonqsGames You can already override everything in the local instances in Godot. |
But .import file is excluded in version control so it will cause problems right? |
The .import FILES are in the same folder as your asset files and contain important meta data that must be kept in your repo. Look here for more info. The .import FOLDER, if i am not mistaken, has changed name. It is now named .godot in Godot 4. It needs to be added in your .gitignore file as it should not be in your repo. That being said.
I'm also confused by that part of the Q&A. @reduz Are we talking about the .godot folder or the .import file of the imported scene? I'm guessing you mean adding new meta data in the .import file? Otherwise the data would indeed be lost if put inside .godot. |
@Kemeros I never mentioned the Godot folder, this is the |
Sadly, making materials shared between models (for example low poly) is now more time-consuming: See my troubles here: godotengine/godot#79040 |
@rick551a Just do not use GLTF embedded. |
Implements [7238](godotengine/godot-proposals#7238) (for the most part). * Ability to select nodes, meshes or materials by clicking. * Moved mesh/material previews to the inspector area. * Ability to override materials and edit them directly in the inspector. * By default, shows overridden materials in the imported scene, with a button to disable them and show original materials. * Keeps compatibility with the old override format.
Describe the project you are working on
Godot
Describe the problem or limitation you are having in your project
The long standing problem with 3D in Godot has been the difficulty of editing 3D materials for imported scenes. While there are many ways to do this, most of them has been significantly annoying and don't work smoothly in all workflows.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
The idea here is to significantly improve the 3D asset importer to make material assigning and simple material editing possible in those scenes.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Here is a mockup how how the new 3D asset importer dialog will look like:
The idea is to have a simplified view of the 3D viewport made exclusively to select and assign materials and edit imported objects easily. The tool icons are as follows:
Additionally, you can see some changes in the mesh inspector:
Editing Materials
When editing materials (inspected) the user interface will also be a bit different:
When you click "enable", we will need to do a small custom logic here with a dialog: It will ask you if you want to select an existing one (file dialog) or customize the one that came with the scene. If you pick customize, a copy of the existing material will be created for you to edit, so the dialog will tell you that further changes to the original material will no longer be tracked (and your customization used instead) until you disable this checkbox.
As mentioned before also, you will be able to do limited material editing directly in the inspector (assigning textures, etc).
FAQ
Q: Why is this type of editing not happening in the Godot main editor itself, like in other engines such as Unity?
A: Godot editor is extremely data driven, meaning what you see is what you get. It does not hide much of what's going on under the hood. This is why the importer dialog and the inspector are two separate things. This is done with the belief that its much less confusing for developers to learn how Godot actually works in a transparent way (and it also makes development and the entire codebase much simpler). That said, for this specific case, I believe that having a dedicated UI for this task, which can be very time consuming, is better in the long term.
Q: Where will the customized built-in materials be saved?
A: Inside the '.import' file next to your asset.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
N/A
The text was updated successfully, but these errors were encountered: