godotengine / godotengine/godot

LODs are not working when using mesh from GridMap

Open
#88,656 3 comments 2 reactions 0 assignees View on GitHub
discussion topic:3d
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in 4.0 and higher.
Not tested below 4.0 version.

### System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)

### Issue description

Levels of details and visiblity range (HLOD) stops working when mesh is used from the GridMap/MeshLibrary.

### Steps to reproduce

1. Create empty scene with Node3D as root.
2. Add MeshInstance3D and give it any mesh.
3. Under GeometryInstance3D change LOD Bias and Visibility Range End value. LODs and HLODs are working here when zooming out.
4. Export scene as MeshLibrary
5. Create new scene, add GridMap and assign previously created MeshLibrary for GridMap.
6. Place object from GridMap to the scene. LODs and HLODs are not working anymore when zooming out.

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by comparing a MeshInstance3D with the same mesh placed through a GridMap/MeshLibrary, following the six steps in the report. Start by investigating the GridMap/MeshLibrary path and the GeometryInstance3D LOD Bias and Visibility Range settings; done means LOD and HLOD behavior works when zooming out in the GridMap case as it does for MeshInstance3D.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.