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"

HTML 5 - bad resolution

I reviewed other old answers but in code - I can't see his solutions.

also I tried to set up console commands for resolution - all work before packaging (and in the editor and standalone good resolution). after it in localhost - it's not work.

alt text

Product Version: Not Selected
ea95c5022e.jpg (467.9 kB)
more ▼

asked Dec 09 '16 at 07:04 PM in Packaging & Deployment

avatar image

424 18 16 26

avatar image Ed Burgess ♦♦ STAFF Dec 20 '16 at 08:08 PM

Hi 6r0m,

It looks like users were looking for a way to adjust resolution in this post: https://answers.unrealengine.com/questions/178020/html5-resolution.html

The answer states that this doesn't occur in 4.11 what engine version are you using?

Also, the areas you are pointing to seem to have a lot of aliasing at this point in time I'm not sure if anti aliasing is supported for html 5.

I hope that helps,

avatar image 6r0m Dec 20 '16 at 08:26 PM

Hi Ed, I saw it, thank you,

r.set res work , but not properly - it seems that engine not understand my default resolution after packaging.

here https://answers.unrealengine.com/questions/533514/archviz-to-html5-or-its-real-to-package-large-proj.html

nick give me a advice, but I can't figure out how where I can setup it(

if you give me some tips, I very appreciate this.

avatar image Ed Burgess ♦♦ STAFF Dec 29 '16 at 10:15 PM

Hey 6r0m,

I was able to change r.setRes just fine and get expected results. Could you share how you are setting this command variable (CVar) so that I may verify that you are doing this correctly or if this is indeed a bug.

I did test play your project in the other post and the resolution does appear to be quite bad. So I am aware that something is wrong but it could be the method you are using to set that CVar.

At this point I am guessing that you are using 4.14 is that correct?

avatar image 6r0m Dec 29 '16 at 11:53 PM

Hey, Ed. Thank you for your time!

I'm using 4.14. and I'm try to think logical, if need me change default resolution for one project I should to go in the folder of this "myhtml5project"/config/DefaultEngine.ini

I add this as you said: alt text

after this in the editor - same problem with edges (I think it resolution, or AA simple not work).

ok I compiled project - it's also bad alt text

fullscreen not properly work too alt text

1.png (105.6 kB)
1.png (999.6 kB)
1.png (1.1 MB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

n the future there will be an incorporated fix in the HTML shell template that UE4 uses which allows customizing between a couple of different "stock" behaviors for flexibility, e.g. fixed window, standard dpi and high dpi. These earlier resize bugs have all been confirmed to be fixed there. You can see an example of that in action in the new Zen Garden demo that launched this week,




In particular moving between fullscreen modes now allows retaining the pixel perfect high DPI rendering that reduces aliasing caused by resolution mismatching. In this solution, the "r.setres width x height" fields are not by default used, and rather developers can stylize and size the canvas from the html page. It is still possible to use the r.setres if the html page is set to "fixed" size. See the html page source of the WebAssembly demo above to get an idea of how that will work in action.

more ▼

answered Mar 09 '17 at 02:15 PM

avatar image

1.2k 15 4 17

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

Hi 6r0m,

I did some more testing and it actually does seem like the resolution gets messed up when going into fullscreen.

In regards to the full screen not working this has been entered as a bug and is currently being worked on. You can find the report here: https://issues.unrealengine.com/issue/UE-36341 (this deals with the black bars) hopefully will address the resolution issue.

I got around this by hitting "`" (this opens the console) and typing "r.setres 1920x1080"

I know this isn't a viable solution for your customers so maybe what you can do is this:

  • In the level blueprint add the node execute console command "r.setres 1920x1080"

  • Have this tied to a hotkey and you can just tell the customer that once they are in full screen press the key that you have tied to this node

The other issue you are seeing is anti-aliasing not functioning. After extended testing I couldn't get good results with Anti-Aliasing so I entered this feature request: https://issues.unrealengine.com/issue/UE-40091

Let me know if anything needs to be changed or added.



more ▼

answered Dec 30 '16 at 03:14 PM

avatar image 6r0m Dec 30 '16 at 04:35 PM

Thank you, Ed.

Resolving this will be very good for html5 implementation.

Good luck.

(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