[4.16] HTML5 - Landscape Material
After exporting my game to HTML5 my landscape material isnt being rendered. I have read these threads here: https://answers.unrealengine.com/questions/164566/landscape-layer-blend-html5.html and here: https://answers.unrealengine.com/questions/492067/landscape-material-wont-show-html5.html that say landscape materials cannot be rendered in HTML5 unless there are 4 or less texture samples without normal/roughness. I've changed my landscape material (pictured below) to these specifications but it still does not render in my browser. Any ideas? Cheers! Edit: I understand i might have put this question in the wrong section.
Landscape material: How its meant to look: Game in browser:
Do you get any messages regarding shaders or materials or rendering in the message log on the page or in the web browser's page console? Can you verify the page is running as WebGL 2? (there should be a printed line in the console that states WebGL 2 or WebGL 1)
Iirc UE 4.16 with WebGL 2 should lift the restriction of only having 4 texture samplers available. Though just for testing, are you able to reduce to three or fewer blended textures? I wonder if that is the root cause here, i.e. whether blending only two or three textures together works?
answered May 28 '17 at 01:39 PM
The WebGL message "Error: WebGL warning: uniform4uiv: Function used is incompatible with uniform type: 35669" is certainly an indication of a bug in UE4 WebGL backend. I would recommend making a minimal project (like you seem to have been doing already above?) to reproduce this and posting to the bug report section of this forum (https://www.unrealengine.com/support/report-a-bug). A zip bundle + steps here might also help others to reproduce, and the UE4 devs to reach a bugfix.
The other WebGL messages like
Error: WebGL warning: drawElements: Framebuffer not complete. (status: 0x8cd7) Error: WebGL warning: drawElements: Framebuffer must be complete.
can be ignored, they are present in all exports at the moment I think.
Also the CORS related message comes from the telemetry option, which you can disable in the project settings by choosing "End users do not send telemetry" (or something similar, I forget the exact UI option), though the warning message is harmless as well.
answered May 29 '17 at 08:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here