Armory: game template "third_person_terrain" error

Created on 21 Oct 2020  路  4Comments  路  Source: armory3d/armory

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

bug kha

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

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guzzard picture guzzard  路  4Comments

luboslenco picture luboslenco  路  3Comments

e1e5en-gd picture e1e5en-gd  路  3Comments

Sanva picture Sanva  路  3Comments

GrahamWilkins picture GrahamWilkins  路  3Comments