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
Describe the problem or limitation you are having in your project
By default, imported 3D scenes (glTF/Collada/FBX) use the Static global illumination mode for the meshes contained within the imported scene.
However, when you create MeshInstance3D nodes yourself, their default global illumination mode is set to Disabled. This is desired for dynamic objects, but for static objects, it will result in them not contributing to global illumination as expected.
For VoxelGI and SDFGI to work on those meshes, you need to go to the inspector and change the GI mode property on each node:
Describe the feature / enhancement and how it helps to overcome the problem or limitation
For consistency between primitive/OBJ meshes and imported 3D scenes, change the default Global Illumination mode on GeometryInstance3D from Disabled to Static.
Benefits:
VoxelGI/SDFGI will work correctly on primitive/OBJ meshes and CSG nodes out of the box. No more fiddling with properties is required.
LightmapGI will still not work for those out of the box unless UV2 is generated for those meshes. That said, changing the default global illumination mode still removes one step from the process, making it slightly more straightforward.
Drawbacks:
Dynamic objects will look incorrect until you change the global illumination mode on them.
godotengine/godot#59293 implements this proposal for CSG nodes only, but I wonder if it should be even more general, given how much confusion there is around global illumination modes.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Track down internal usages of meshes within the editor code and set the GI mode property to Disabled again. This prevents editor-only meshes from affecting baked GI.
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?
This is about changing a default property for better usability out of the box, especially for beginners.
The text was updated successfully, but these errors were encountered:
I'll add that this is more inline with other game engine default behaviors too - IIRC everything in Unreal is set to static by default - although there is no "none" setting, I think you have to manually set a mesh as not contributing to lighting which would be similar.
Dynamic objects will look incorrect until you change the global illumination mode on them.
I don't see this really as a drawback either way - dynamic objects are usually in the minority anyways and their lighting needs special consideration anyways. Changing all objects to be static by default shouldn't change much in practice.
Describe the project you are working on
The Godot editor 🙂
Describe the problem or limitation you are having in your project
By default, imported 3D scenes (glTF/Collada/FBX) use the Static global illumination mode for the meshes contained within the imported scene.
However, when you create MeshInstance3D nodes yourself, their default global illumination mode is set to Disabled. This is desired for dynamic objects, but for static objects, it will result in them not contributing to global illumination as expected.
For VoxelGI and SDFGI to work on those meshes, you need to go to the inspector and change the GI mode property on each node:
Describe the feature / enhancement and how it helps to overcome the problem or limitation
For consistency between primitive/OBJ meshes and imported 3D scenes, change the default Global Illumination mode on GeometryInstance3D from Disabled to Static.
Benefits:
Drawbacks:
godotengine/godot#59293 implements this proposal for CSG nodes only, but I wonder if it should be even more general, given how much confusion there is around global illumination modes.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
GI_MODE_DISABLED
toGI_MODE_STATIC
: https://github.com/godotengine/godot/blob/943b50995292d98d9bc2e45ff04eaf0a716cea28/scene/3d/visual_instance_3d.h#L129If 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?
This is about changing a default property for better usability out of the box, especially for beginners.
The text was updated successfully, but these errors were encountered: