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

Implement LOD generation when importing OBJ as mesh #65294

Open
Tracked by #57416
snektailmeat opened this issue Sep 3, 2022 · 6 comments
Open
Tracked by #57416

Implement LOD generation when importing OBJ as mesh #65294

snektailmeat opened this issue Sep 3, 2022 · 6 comments

Comments

@snektailmeat
Copy link

snektailmeat commented Sep 3, 2022

Godot version

4.0 alpha15

System information

Windows 10

Issue description

The build in Auto Lod systems seems to not work on obj´s as meshinstances

Steps to reproduce

Creat a meshinstance from an obj and set LOD Bias, import the same model as a gltf and set the LOD Bias to the same value on both models.

Minimal reproduction project

lodbug.zip

@Calinou
Copy link
Member

Calinou commented Sep 3, 2022

Mesh LOD generation only kicks in on imported 3D scenes, not imported 3D meshes. If you change the OBJ's import type to OBJ As Scene, LOD generation should work.

@Zireael07
Copy link
Contributor

@Calinou The fact this only works on scenes should be documented then

@Calinou Calinou changed the title Auto LOD doesn't seem to Work on obj´s Implement LOD generation when importing OBJ as mesh Feb 21, 2023
@Calinou
Copy link
Member

Calinou commented Feb 22, 2023

@Calinou The fact this only works on scenes should be documented then

It's documented now: https://docs.godotengine.org/en/latest/tutorials/3d/mesh_lod.html#generating-mesh-lod

@vPumpking
Copy link
Contributor

And is there a quick way to make every imported obj lod meshes?

@Calinou
Copy link
Member

Calinou commented Jul 5, 2024

And is there a quick way to make every imported obj lod meshes?

It might be possible to script it but it's definitely nontrivial. Switching your OBJ imports to OBJ as Scene and modifying your scenes accordingly is probably quite a bit faster.

You can use the Save to File option in the Advanced Import Settings dialog to save a single mesh from the imported scene. This mesh will contain generated LODs (if enabled in the Import options), which makes it useful for things like particles.

@vPumpking
Copy link
Contributor

nevermind, I have time so I started to work on a realtime meshsimplifier for meshinstances

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

Successfully merging a pull request may close this issue.

5 participants