Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

WebGL and Resolution Errors in HTML5

When launching our HTML5 build we get the following errors streamed in the output log:

 LogPlayLevel: HTML5LaunchHelper: [1128/153301:ERROR:gles2_cmd_decoder.cc(4161)] [.Offscreen-For-WebGL-000000000413B8B0]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete
 LogPlayLevel: HTML5LaunchHelper: [1128/153302:ERROR:gles2_cmd_decoder.cc(7306)] [.Offscreen-For-WebGL-000000000413B8B0]GL ERROR :GL_INVALID_VALUE : glFramebufferTexture2D: level out of range
 LogPlayLevel: HTML5LaunchHelper: [1128/153302:ERROR:gles2_cmd_decoder.cc(4161)] [.Offscreen-For-WebGL-000000000413B8B0]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete

After a short time, these errors hit the display limit and stop being shown.

Additionally, the display resolution acts really weird. Our goal is to set the canvas to 67% of the screen width when not full screen (so it'll be 1280x720 on a 1920x1080 screen) and set the game resolution to 1280x720 stretched fullscreen when the fullscreen button is pressed.

Using Firefox, pressing fullscreen with the startup resolution at 1280x720 and a desktop resolution of 1920x1080 causes a 1280x720 rendering area in the bottom left corner of the screen, and the interaction area is oriented from the top left corner of the screen, unless we concurrently change the resolution to the desktop resolution. When we do that however, the startup resolution is somehow affected? If we have it set to 1280x720 using r.SetRes when it's not fullscreen, it looks like the Windowed Incorrect image below. If I call r.SetRes 1920x1080 (the desktop resolution) from that view, it becomes correct, but the fullscreen view isn't interactable??

Which is this bug, reported by our producer.

For reference, here's what it's supposed to look like (blurred images due to confidentiality reasons):

In windowed mode: Windowed Correct

Here's what happens if I rescale the window while not fullscreen: Windowed Incorrect

and here's what happens if I don't set the resolution to the desktop resolution when fullscreen: Fullscreen Incorrect

And in Chrome it just doesn't work correctly either way in fullscreen:

at 1280x720: Chrome Fullscreen Incorrect

and at 1920x1080: Chrome Fullscreen Incorrect 2

Product Version: UE 4.13
more ▼

asked Nov 28 '16 at 10:11 PM in Rendering

avatar image

169 8 8 14

avatar image jonathan.madden Dec 01 '16 at 07:56 PM

Ok, seems I've got the display resolution working correctly, but I'm still stuck on the fact the the game is not interactable once I go fullscreen.

To solve the resolution issue, I had to remove the css styling which was overriding my calls to resize the canvas.

avatar image jonathan.madden Dec 02 '16 at 06:26 PM

Posted a follow up on the interaction here. It's not "completely" non-interactive.


avatar image jonathan.madden Dec 05 '16 at 06:48 PM

And also of course the webGL errors that spam the output log/console.

avatar image 6r0m Dec 09 '16 at 06:11 PM

how do you got display resolution working correctly?

avatar image jonathan.madden Dec 09 '16 at 07:01 PM

See attached.

Fixes inside!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first
more ▼

answered Jan 11 '17 at 09:45 PM

avatar image

169 8 8 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The framebuffer incomplete and level issues have been identified, and these will work if you run on a WebGL 2 capable browser. That being said, it was also identified that these warnings should be benign and not cause visual artifacts in projects. Also fixes to the canvas black borders issues have been identified and pulled upstream. WebAssembly was released just now in Firefox 52, check out a demo of that in action at




That demo showcases a number of the upcoming fixes (needs Firefox 52, preferably 64-bit) and it renders pixel perfectly on the canvas.

more ▼

answered Mar 09 '17 at 02:54 PM

avatar image

1.2k 15 4 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question