(SOLVED)3D model crashes project

How do I fix a problem where a .glb 3d model crashes my project

So when I preview my project and it loads like 1-3 seconds after in the scene that has the 3D model in it, it just black screens. Both preview and exported game does this. It’s not a computer issue since I tested it on a more high end computer. Both the built in browser profiler (That I opened using CTRL+SHIFT+I) and the gdevelop profiler stops after the blackout. I researched found nothing but after removing the 3D model it worked. But now I have another 3D model that does the same to my project. Both 3D models don’t crash another empty project so I don’t know know why it crashes my main one. The 3D models aren’t too complex since I have more complex ones that work. I’m new to both 3D games and 3D modeling. Both models were made in Blender and one of them was textured in Substance Painter.

Related screenshots


What DevTools says after the game blackscreens.

Here are the two .glb files on GDrive.

Please help

I believe your “gun” model has an excessive number of polygons (or HQ textures).
Given its size (33MB),
I recall someone suggesting to keep models under 15MB and to use only low-poly versions for now.
If the model loads in a new project, it’s probably because GD finds the necessary resources.
If it doesn’t loads in an already advanced project, the resources may not be sufficient. However, these are just my assumptions,you should test them.

1 Like

Wow I feel stupid. Yes thank you, you were right. I cleaned up my project and it worked fine after. I didn’t know about the 15mb “limit”. Thanks for helping!

2 Likes