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

GridMap lighting issues when using imported meshes as tiles #65984

Closed
fantaandcode opened this issue Sep 17, 2022 · 4 comments
Closed

GridMap lighting issues when using imported meshes as tiles #65984

fantaandcode opened this issue Sep 17, 2022 · 4 comments

Comments

@fantaandcode
Copy link

Godot version

4.0 beta 1

System information

EndeavourOS 64-bit, 5.19.8-arch1-1 kernel, Ryzen 5 3600, Nvidia RTX 3090, Vulkan on driver version 515.65.01

Issue description

When I use a GridMap with imported Blender meshes, it causes problems with the lighting/shadows as shown below. There is a distinct line where a shadow is made, regardless of location, distance from camera, and light rotation. I've tested with a flat plane MeshInstance and the lighting problem does not show. Toggling the GridMap visibility will also turn off this lighting inconsistency.

image

This problem actually showed up when I switched from alpha 15 to alpha 17. However, upon checking out the beta and seeing that the bug was still present, I'm making this bug report.

Steps to reproduce

  1. Make a 3D model in Blender
  2. Export to GLTF
  3. Import into Godot as new scene
  4. Scene -> Export As... -> MeshLibrary...
  5. Create GridMap
  6. Add MeshLibrary created above as the Mesh Library for the GridMap
  7. Paint tiles on GridMap
  8. Create an OmniLight3D or Spotlight3D

Minimal reproduction project

Grid Map Lighting Bug.zip

I've included the .blend file of the tiles I made for this test.

@Calinou
Copy link
Member

Calinou commented Sep 17, 2022

This is likely caused by the switch to octahedral compression for imported meshes. Try removing the .godot/ folder while the editor is closed, then open the editor again. See #64854.

@fantaandcode
Copy link
Author

So, it worked for the test that I uploaded. However, it seems to still pose a problem. Would this be a problem with when I initially imported it via Blender? I see that .blend files are no longer showing up in the File Browser.

@Calinou
Copy link
Member

Calinou commented Sep 18, 2022

I see that .blend files are no longer showing up in the File Browser.

Double-check that Blender import is enabled in the Project Settings and that a Blender path is set in the Editor Settings.

@fantaandcode
Copy link
Author

image
So, it was initially having the same problems. Upon redoing the import process, it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants