hopefully this helps someone out there on the grand internet:
Short story: go to game.project → graphics → OpenGL Version Hint → set “Highest Version Available”. this fixed the issue for me!
Long long story:
I recently downloaded Defold because I was fed up with Unity, tired of Godot, and not interested in Unreal. Defold seemed to be the only engine that can export to all of the major platforms, so I wanted to give it a try. So I watched hours of tutorial videos, then decided to finally start my first project.
New blank desktop project. Build. Black Screen. WTF? Build HTML5. Renders perfectly. WTF again?? So I started searching and found various threads about this issue, but nobody had a solution. Some people found that adding more objects would cause other objects to render, some people found that their coordinates were off, some people found that changing the resolution was effective, but none of them worked for me. So I angrily deleted Defold.
After another afternoon of google searching “perfect game engine that exactly meets my requirements”, I kept thinking back to Defold. So I decided I want to spend a couple days figuring out the issue if I could, otherwise f*** it, no regrets.
So I started trying random stuff, curious about whether the issue persisted after publishing the app, and of course, the published version is just as broken. I started messing around with different bundle settings randomly and finally found that the win32 publish renders it perfectly. But there’s no option to change the regular build to win32, so I kept looking for a better answer. Publishing with win64 in release mode doesn’t work, but some extra things get rendered for 0.2 seconds when you exit the game. I tried various other bundle/publish configurations, but to no avail.
Then I finally started looking around again in the game.project settings, and noticed that the OpenGL Version Hint had an ascending list with the lowest version selected. Why would you use the lowest version as the default? That’s a bug IMO. I switched it to “Highest Version Available” and voila! After that, I tried every version in the list from 3.3 all the way to 4.6, but none work, it only works when I select “highest version available”.
FWIW, here’s some stats on my laptop:
Laptop model: ASUS TUF Gaming F17
Processor: intel core i5 10300H
RAM: 8GB
Graphics: NVIDIA GeForce GT 1650Ti
Driver version: 32.0.15.6614 (just updated it yesterday as part of my debugging)
OS: Windows 10 Home 22H2
DirectX: v12