Description
I just try game template "third_person_terrain". When I play in Krom, all is OK.
But when I play in browser, all terrain in invisible and In inspect browser I got error:
kha.js:2760 Uncaught TypeError: Cannot read property 'b' of null
at iron_data_TerrainStream.onReady (kha.js:2760)
at iron_data_TerrainStream.loaded (kha.js:10983)
at kha.js:10943
at kha_Assets.loadImageFromPath.fileName (kha.js:9522)
at HTMLImageElement.img.onload (kha.js:25370)
System
Blender: 2.90
Armory: Latest from Github
OS: WIndow 10
Graphics card: NVidia GeForce 940 MX
In kha.js line 2754, tex.getPixels result is null
var p = tex.getPixels();
For Armory to work correctly, you need Blender 2.83 (https://github.com/armory3d/armory/wiki/setup). Try on the specified version
P.S. The engine also develops and templates, examples may no longer be relevant
For Armory to work correctly, you need Blender 2.83 (https://github.com/armory3d/armory/wiki/setup). Try on the specified version
P.S. The engine also develops and templates, examples may no longer be relevant
I just try using Blender 2.83 LTS, but the error still exist. Maybe this is a bug?
Seems to be a duplicate of https://github.com/armory3d/armory/issues/1385 which looks like a Kha issue.
I'm not sure if this is a limitation of webgl (documentation of readPixels()), at least it looks as if it requires a workaround to implement the missing functionality in Kha for html5: https://stackoverflow.com/a/18804153/9985959. Maybe we should open an issue on the Kha repository to get it fixed.
Most helpful comment
For Armory to work correctly, you need Blender 2.83 (https://github.com/armory3d/armory/wiki/setup). Try on the specified version
P.S. The engine also develops and templates, examples may no longer be relevant