Can't get Scene Capture 2d image to display properly in HTML5
Hello, we're creating an Html5 project and are trying to save out an image of the screen in browser. We are using Scene Capture 2d to take a screenshot of the viewport on the web and are convert this capture to a RawPixel array in C++. When we try to use the created image, we end up getting an image like this:
We are getting this error in the Chrome Developer Tools: WebGL: INVALID_ENUM: readPixels: invalid format
Does anyone have any idea what could be going wrong? The image works correctly when inside of the editor and when packaged for anything but HTML5.
asked Feb 13 '18 at 09:00 PM in C++ Programming
ok, i must admit - i'm a programmer and not a designer... so i followed the tutorial at:
this uses "Scene Capture 2D" -- and i just tried this on 4.19 (hot off the press!) and the step by step instructions worked when i packaged for HTML5.
answered Mar 21 '18 at 09:08 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here