x

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"

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:

alt text

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.

Thanks!

Product Version: UE 4.18
Tags:
more ▼

asked Feb 13 '18 at 09:00 PM in C++ Programming

avatar image

Ultrabuffalo
8 1 3

avatar image nick.shin STAFF Feb 15 '18 at 04:44 PM

just out of curiosity, does this work on firefox?

avatar image Ultrabuffalo Feb 15 '18 at 06:23 PM

Sadly, no. I'm getting the same image out of there.

avatar image nick.shin STAFF Feb 23 '18 at 08:51 PM

ok, i'm trying to run one of our test maps (ContentExamples -- with Reflection level) but, there seems to be a bug with the memory system and ICU initialization that's preventing me from running this...

i will get back to this after a little bit of vacation time (mid march). apologies for the delay.

avatar image Ultrabuffalo Feb 23 '18 at 11:13 PM

Great, I'll be sure to comment if we can get anywhere in the meantime. Thanks for the help, have a nice vacation!

avatar image Daniel Inversini Mar 21 '18 at 06:06 PM

Any update here, having exactly the same issue in a HTML5 build ?

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

1 answer: sort voted first

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.

more ▼

answered Mar 21 '18 at 09:08 PM

avatar image

nick.shin STAFF
476 5 4 9

(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