godotengine / godotengine/godot

Incorrect AABB when another instance is animated

Open
#102,136 2 comments 0 reactions 0 assignees View on GitHub
bug topic:3d topic:animation topic:import
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

- Reproducible in v4.4.beta1.official [d33da79d3] , v4.3.stable.official [77dcf97d8]

### System information

Godot v4.4.beta1 - Ubuntu 24.04.1 LTS 24.04 on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1080 Ti (nvidia; 535.183.01) - 12th Gen Intel(R) Core(TM) i3-12100F (8 threads)

### Issue description

Objects disappear when they are near the edges of the frame.

When importing a glTF object, creating 2 instances in a scene, and animating one of them. The other features incorrect AABB.

![Image](https://github.com/user-attachments/assets/fcf7ec43-14d1-4630-b568-77b939337dd4)
_In this image the character has missing elements. There is a second instance of the character on the scene that is playing an animation._

![Image](https://github.com/user-attachments/assets/916b1dff-e574-49bc-b1bd-6afe0291c78a)
_In this image the character looks correctly. The second instance of the character on the scene is not playing any animation._

### Steps to reproduce

I've prepared a minimal project. You can just open and run it to see the issue.

- It features a .glb object, imported 2 times in the main scene.
- Through code I'm playing an animation on one of them.
- The other one is on the side of the camera frame.

Several pieces are missing on the second instance.

### Minimal reproduction project (MRP)

[aabb_bug_v2.zip](https://github.com/user-attachments/files/19014551/aabb_bug_v2.zip)

Contributor guide

Open the contributing guide

Research direction

Open and run the attached aabb_bug_v2.zip minimal project, then reproduce the scene with two imported .glb instances while one plays an animation. Investigate why the non-animated instance loses pieces near the camera-frame edge; done means both instances retain correct visible geometry regardless of the other instance's animation state.

Written by the indexing model from the issue text.

Assessment

Tech stack
godot
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.