-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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 OBJ mesh into a MeshInstance2D completely messes its transforms #85963
Comments
This seems to be caused by the new mesh compression option. You can fix the problem by disabling mesh compression in the import settings: I can think of two possible engine changes that would help alleviate this issue:
|
I can confirm that this seems to fix it! I hadn't thought of trying this 😅 |
To be fair, its a new option and it wasn't needed before. We are still figuring out how to make the option more visible to users as there are cases where it will be needed. In this case though, I think we can figure out an in-engine fix that won't require you to toggle the option. Its just a workaround for now |
I can also confirm this issue in v4.3-dev5 with .glb files. |
Tested versions
Reproductible in v4.2.stable.mono.official [46dc277]
Not Reproductible in v4.1.3.stable.official [f06b6836a]
System information
Godot v4.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 (NVIDIA; 30.0.15.1165) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)
Issue description
I'm doing a 2D game in a very polygonal/vector style, and I was planning on using 2D Meshes.
However, upon re-importing my meshes in 4.2, I noticed that all of them were incorrectly scaled in the 2D Viewport, despite their actual (Node2D) scale not changing.
The situation in Godot
v4.2.stable.mono.official [46dc27791]
What I expected the mesh to look like (screenshot from Blender, the mesh is built on the XZ axis, and exported to use Y as up, so it should be on XY in Godot)
The mesh in Godot's 2D viewport, it was clearly offset to the bottom left, and squished on one axis. Its visual scale is also immensely smaller than the export scale.
The MeshInstance's full hitbox (the model isn't even visible anymore)
Double-checking
Now, to Check that I wasn't just going Insane or doing something wrong, I tried to create a completely new project AND a completely blank blend file with this mesh that I quickly cobbled together.
However, when I imported it to Godot, I was met with this, and to double check that it was also doing what I described above...
... I superposed the blender viewport and Godot viewport, and this mesh seems to also be squished, with no intervention on my part
Checking in Godot 4.1
To be fully sure, I imported the same OBJ meshes in Godot
v4.1.3.stable.official [f06b6836a]
.Which seems to work as expected
Steps to reproduce
Minimal reproduction project (MRP)
4.2 and 4.1 Projects used in this report linked below
godot_4.1_bug_hunt.zip
godot_4.2_bug_hunt.zip
The text was updated successfully, but these errors were encountered: