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

Importing a glTF model: texture scaling is ignored #48737

Closed
ReturnMinusOne opened this issue May 15, 2021 · 3 comments
Closed

Importing a glTF model: texture scaling is ignored #48737

ReturnMinusOne opened this issue May 15, 2021 · 3 comments

Comments

@ReturnMinusOne
Copy link

Godot version:

3.3.stable.mono.official

OS/device including version:

OS: Windows 10 (64-bit)
GPU: AMD (Gigabyte) Radeon RX 590
GPU driver: 20.10.27.05-201027a-360165C-RadeonProEnterprise
Godot renderer backend: GLES3

Issue description:
Importing a glTF 2.0 model file into Godot does not take into account the scaling factor of materials. A texture that is normally tiled will simply be stretched when imported.

Viewing the model in another program, such as Blender 2.9 or the Windows 3D Viewer, will show the proper tiling.

Left: Windows 3D Viewer | Right: Godot 3.3
GLTF-Win3dViewer-vs-Godot

Steps to reproduce:
Import a .gltf or .glb file with some texture tiling into Godot.

Minimal reproduction project:

GLTF Import.zip

@Calinou
Copy link
Member

Calinou commented May 15, 2021

cc @fire

@fire fire self-assigned this May 15, 2021
@fire
Copy link
Member

fire commented May 20, 2021

I and a peer are working on a Godot Engine gltf2 backport for 3.x. I believe this issue is resolved on master.

#34193

#46783

https://github.com/godotengine/godot/blob/master/modules/gltf/gltf_document.cpp#L3544-L3562

@fire fire removed their assignment May 20, 2021
@ReturnMinusOne
Copy link
Author

That's reassuring; I look forward to the next stable release.

@akien-mga akien-mga added this to the 4.0 milestone May 20, 2021
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

4 participants