Open crz144 opened 1 month ago
I will fix the crash as that's horrible. I have to wonder is the UX that bad that you're trying to import a height map in a terrain material instead of the big Import Heightmap button.
My experience (without knowing anything about the Terrain system and low 3d game dev experience):
If you want an opinion, Point 5 in particular should give some feedback about what's wrong with the image I've provided, or what dependent elements are not yet configured. That combined with the error for this case should protect the user from their inexperience.
Point 2:
I've fixed the crash, let me improve the UX.
Describe the bug
After creating a new minimal project and attempting to add a terrain node with an 800x600 height map of solely black and white pixels (attached below), the editor immediately crashed upon saving it. Attempts to open the project from the editor afterwards would put up the splash screen and follow the normal process before promptly crashing with no output. Only clue in the log is on the last line:
"tryna compile c:/users/crzur/documents/s&box projects/bhop/Assets/randterrain.tmat"
Seems to be due to image size (and not the fact it's a .png instead of .tga), as 16x16, 17x16 and 17x17 png worked.
To Reproduce
Expected behavior
If heightmap texture of different size than other elements is supported, the editor should not crash upon saving it. If this is not a supported scenario, an error message noting the requirements for this field should be displayed.
Media/Files
Log.16.log
Additional context
No response