question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unreal Bloom Pass Doesn't Work Without Meta on Android

See original GitHub issue

Sharing this for reference in case anyone else comes across this issue.

I tried using Unreal Bloom Pass for a project, and it was working fine on everything but Chrome on Android (v96). Turns out this was all because I had missed the following line in the <head> tag:

<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

Without this html element the Unreal Bloom Pass just showed up as black, and I received an error about textures. Seems slightly odd that a meta tag would result in such an error, but at least there’s a solution.

Steps to repeat:

  1. Copy HTML from https://threejs.org/examples/webgl_postprocessing_unreal_bloom.html
  2. Ensure all resources are appropriately linked
  3. Delete <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> line from top of HTML
  4. View on android (notice nothing is shown)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mrdoobcommented, Nov 23, 2021

It’s probably because if you don’t use <meta> the canvas ends up being very big.

I think eventually we’ll handle the sizing internally in the render using devicePixelContentBox.

1reaction
DeeElGeecommented, Nov 23, 2021

Yeah, understood. Was mostly posting for reference in case anyone else comes across this problem. Thanks for investigating though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No bloom on Android - Mobile - Unreal Engine Forums
Many visual effects don't work on various mobile platforms. Is there a specific claim somewhere that bloom should work on those devices?
Read more >
Bloom | Unreal Engine 4.27 Documentation
Modifies the brightness and color of each bloom. Using a black color will not make this pass faster but that can be done....
Read more >
Post Process Effects on Mobile Platforms | Unreal Engine 4.27 ...
Currently, you cannot create custom Post Process materials for older Android devices that require 'mosaic' mode for HDR rendering. Finally, pixel depth ...
Read more >
Setting Up Android SDK and NDK for Unreal
This page provides a walkthrough for setting up Android Studio and ensuring that Unreal Engine recognizes these components correctly, and some troubleshooting ......
Read more >
Performance Guidelines for Mobile Devices in Unreal Engine
If you disable a shader permutation that your lighting setup requires, your lighting or shadowing will not render correctly and there will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found