Armory: The problem with exporting to html5 (v0.5)

Created on 5 Sep 2018  路  13Comments  路  Source: armory3d/armory

When exporting to xml5, it displays errors and displays a black screen:

Sampler gbufferD not found
Uniform textSize not found

in the Krom scene is displayed well
https://youtu.be/tRNq112GB3Q

219A.zip

Most helpful comment

Will give priority to further improve material nodes in 0.6. 馃檪 (tag https://github.com/armory3d/armory/issues/284)

All 13 comments

Thanks for report. Hm, Chrome on Windows seems ok. What OS/browser are you on? Will try to reproduce there and fix.

Any more errors messages? Sampler/Uniform not found itself should not cause black screen.

1

Sorry I missed the video link, will check it out on Linux.

manjaro Linux
FireFox 61.0.2 (64-bit) & Chrome 67.0.3396.99 don`t work
Only 2 errors. others have not noticed or do not know how to look.

output from console
bug-1.zip

I'll take an opportunity to ask about the bump of procedural textures. is it possible? The pupil is interested in procedural brick in Armory)

Will give priority to further improve material nodes in 0.6. 馃檪 (tag https://github.com/armory3d/armory/issues/284)

Thank you!!!

PS/ in the alpha version 0.5 everything worked fine

I tested on manjaro + firefox 61.0.2 (64bit) and it's ok here for some reason. Will try to test on another machine. Can you spot any errors in firefox menu - web developer - browser console?

screenshot_2018-09-05_15-48-31

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
kha.js:1:519092
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.
kha.js:1:525863
Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads. kha.js:1:523469
TypeError: Argument 6 is not valid for any of the 6-argument overloads of WebGL2RenderingContext.texImage2D. kha.js:1:519731

TypeError: Argument 6 is not valid for any of the 6-argument overloads of WebGL2RenderingContext.texImage2D. kha.js:1:519731
createTexture
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:519731
kha_Image.fromBytes
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:447245
armory_renderpath_RenderPathDeferred.init
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:48062
armory_renderpath_RenderPathCreator.get
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:68759
start/</</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:70616
iron_Scene.setActive/</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:53153
iron_Scene.create/</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:52859
addScene/</</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:62129
traverseObjects/traverseObjects1</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:61883
returnObjectLoaded
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:67910
returnObject
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:67040
returnMeshObject/<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:66450
iron_data_Data.getMesh/<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:85943
iron_data_MeshData.parse/</<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:204482
iron_data_MeshData
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:203656
iron_data_MeshData.parse/<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:204097
iron_data_Data.returnSceneRaw
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:94150
iron_data_Data.getSceneRaw/<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:93756
iron_data_Data.getBlob/<
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:96574
kha_LoaderImpl.loadRemote/request.onreadystatechange
file:///run/media/kaiwas/Hdisk/Armory/build_219A/html5/kha.js:1:463458

PipelineState.hx:92: Warning: Uniform texSize not found. kha.js:1:424525
PipelineState.hx:111: Warning: Sampler gbufferD not found.

Chrome - also does not work
I'll try to restart the computer)))
upd/ did not help

file attached
html5.zip

still there is a problem with the particles or so it should be.
Video
https://youtu.be/YJmhMAGOlsI
file
04-test2-4.zip

Checked on another system. Win7

Everything is working. I will look for the cause of the problem at home.

found the reason.
In the renderer settings, if the "deferred" button is active, it does not work.
If you put "forward" - it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HeadClot picture HeadClot  路  3Comments

mushroomeo picture mushroomeo  路  4Comments

Bugsbane picture Bugsbane  路  3Comments

e1e5en-gd picture e1e5en-gd  路  3Comments

Sanva picture Sanva  路  3Comments