Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem with exporting to html5 (v0.5) #861

Closed
kaiwas opened this issue Sep 5, 2018 · 13 comments
Closed

The problem with exporting to html5 (v0.5) #861

kaiwas opened this issue Sep 5, 2018 · 13 comments

Comments

@kaiwas
Copy link

kaiwas commented Sep 5, 2018

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

@luboslenco
Copy link
Member

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

@luboslenco
Copy link
Member

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

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

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.

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

output from console
bug-1.zip

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

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)

@luboslenco
Copy link
Member

Will give priority to further improve material nodes in 0.6. 🙂 (tag #284)

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

Thank you!!!

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

PS/ in the alpha version 0.5 everything worked fine

@luboslenco
Copy link
Member

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

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

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

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

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

@kaiwas
Copy link
Author

kaiwas commented Sep 5, 2018

Checked on another system. Win7

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

@kaiwas
Copy link
Author

kaiwas commented Sep 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants