godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.47k stars 21.07k forks source link

Automatic mesh LOD selection isn't affected by 3D resolution scaling #68484

Closed mrjustaguy closed 1 year ago

mrjustaguy commented 1 year ago

Godot version

4.0 Beta 4

System information

Windows 11, Vulkan, GTX 1050 Ti 516.94

Issue description

Changing Project Setting Resolution Scale doesn't affect Automatic LOD

Steps to reproduce

Load a Mesh with ALOD Get to a distance where it is about to switch LODs View Information (see primitive count) Play with Resolution Scale Observe no Change with LODs

Minimal reproduction project

ALOD.zip

Calinou commented 1 year ago

@mrjustaguy Please upload a minimal reproduction project to make this easier to troubleshoot.

mrjustaguy commented 1 year ago

updated. For some reason Half Resolution setting in the editor works as expected, just not Resolution Scale.

Calinou commented 1 year ago

For some reason Half Resolution setting in the editor works as expected, just not Resolution Scale.

Half Resolution shrinks the viewport resolution by half – it doesn't use 3D resolution scaling. It uses the same approach as in 3.x, although it should probably be changed to use 3D resolution scaling now (to fix issues with GridMap selection and the like).