Improve clarity about lod related parameters #10958
Labels
area:class reference
Issues and PRs about the class reference, which should be addressed on the Godot engine repository
enhancement
Your Godot version:
4.4
Issue description:
I use ArrayMesh to dynamically create a mesh at runtime.
Now, I also want to create lods with the
add_surface_from_arrays
method.My issue is that I don't really understand how to setup the lod parameters.
The lod parameter is a Dictionary. I managed to setup the lod indexes without too much problems, but I don't know about the keys.
The doc says :
This is unfortunately quite vague and not really helpful. The problem is that I have absolutely no idead what this value means, and how it should be setup. Is this related to the mesh distance, or something with the pixel density for a given camera fov, or anything else? I'm left with finding values with trial and error, without knowing if it will still work if I change some of the elements of the mesh or the scene setup.
Event after inspecting the code, I don't understand what this value means. If someone could be king enough to provide some insight, I would gladely try to contribute a PR.
Thank you.
URL to the documentation page (if already existing):
https://docs.godotengine.org/en/latest/classes/class_arraymesh.html#class-arraymesh-method-add-surface-from-arrays
The text was updated successfully, but these errors were encountered: