# \[GearVR\] Media Texture Aliasing/Filtering Problem

**URL:** <https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616>\
**Category:** XR Development\
**Tags:** GearVR, aliasing, unreal-engine, question\
**Created:** [August 29, 2016, 11:13am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616 "2016-08-29T11:13:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [August 29, 2016, 11:13am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/1 "2016-08-29T11:13:51Z")

</div>

Hey Everybody,

we got severe problems using the new and “old” media player engine on the Galaxy S7 Mali-T8 UE 4.12 and 4.13.  
**On Galaxy S6 Mali-T7 and 4.10/4.11 everything looks way better!!??**

We key the video in realtime - here is the result with the basic 30fps video from unreal in the editor ( probably because of aa:

 ![104772-ue4desktop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/8/668677da16f1a96ce77ce660e0bc25e77ab96f42.jpeg)

This is how it looks in the gear vr -  
it feels like the texture filtering is not available on media textures…

 ![104773-ue4gearvr.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/6/976a8fd40006c53517908459386ff1556e60d456.jpeg)

( it looks way worse inside the gear )

Anybody got ideas? We tried different file formats - sizes and fps. It looks the same with unlit/opaque/non-transparent. Textures just look bad. We also tried the r.ContentScaleFactor=0 command with no effect.

4.13 has the same problems.

Thanks for any help

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8bafcfec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8bafcfec](https://forums.unrealengine.com/u/anonymous_user_8bafcfec)\
**Post date:** [September 2, 2016, 8:23pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/2 "2016-09-02T20:23:38Z")

</div>

I find it’s handy to output “Get Viewport Size” to be sure that everything is being rendered at the resolution you expect for your device. And if it’s not rendering correctly increase r.MobileContentScaleFactor until it does work.

Personally I haven’t found r.MobileContentScaleFactor = 0 to work either.

Also you could use r.MobileOnChipMSAA = 1 to force MSAA on the mobile device and may help if the performance doesn’t take too much of a hit.

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 2, 2016, 9:40pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/3 "2016-09-02T21:40:06Z")

</div>

Try this. Open your material and click on the Texture Sample node. In details, change Sampler Source to “From texture asset”.

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [September 6, 2016, 8:38am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/4 "2016-09-06T08:38:32Z")

</div>

this is the default setting on my video textures - so no difference there

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [September 6, 2016, 8:41am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/5 "2016-09-06T08:41:02Z")

</div>

Get Viewport Size always returns the same resolution - r.MobileContentScaleFactor and r.MobileOnChipMSAA does not seem to have an effect.

I had an issue with the left eye not being rendered - it seemed the fact that i suddenly had r.MobileContentScaleFactor=0 and r.MobileContentScaleFactor=1 in the same config caused this issue.

No changes to texturesampling. **Videotextures alias really hard in the distance on the S7. On the S6 everything looks really good??!??!**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8bafcfec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8bafcfec](https://forums.unrealengine.com/u/anonymous_user_8bafcfec)\
**Post date:** [September 6, 2016, 12:30pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/6 "2016-09-06T12:30:57Z")

</div>

Could that be because of the different chipsets between the S6/S7?

The S6 has the Exynos 7420 while the S7 could have either the Snapdragon 820 or the Exynos 8890. So if your S7 has Snapdragon then Unreal will select an Adreno device profile so it may be pulling the settings from different places or pulling in a child device profile that is over-riding something.

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [September 7, 2016, 7:53am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/7 "2016-09-07T07:53:05Z")

</div>

As i stated above, both are based on Exynos Mali.  
Is there a bulletproof trick to asure the profile is being used? Or to display the profile that is being used ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8bafcfec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8bafcfec](https://forums.unrealengine.com/u/anonymous_user_8bafcfec)\
**Post date:** [September 7, 2016, 1:52pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/8 "2016-09-07T13:52:46Z")

</div>

I’m sorry I missed that at the top. Honestly I just strip out as much as possible from the children profiles and put everything in the base [Android DeviceProfile] so that I know 100% what is going on. The idea being with that variable out of the way its easier to debug. When everything is fine i can bring the other profiles back and see the effect and tweak accordingly.

Though in your case it _should_ be using [Android\_Vulkan\_GalaxyS7\_Mali DeviceProfile] or [Android\_Mali\_T8xx DeviceProfile] which inherit from [Android\_High DeviceProfile] which inherits from [Android DeviceProfile]

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 15, 2016, 7:00pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/9 "2016-09-15T19:00:32Z")

</div>

Turning on “Use Full Precision” under Mobile in the material will fix it.

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [September 16, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/10 "2016-09-16T15:49:23Z")

</div>

Thanks! Will check as soon as i can.

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 23, 2016, 12:39am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/11 "2016-09-23T00:39:25Z")

</div>

I’ve found an additional issue which I’m fixing for 4.13.1. The fix is on GitHub here: [link text](https://github.com/EpicGames/UnrealEngine/commit/315f77cd5424450f969e38f371bdb07ade5825f1)

Since this is just a Java file you can just replace it without needing to recompile the engine.

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [September 28, 2016, 5:18pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/12 "2016-09-28T17:18:16Z")

</div>

Hey Chris, just tested your file and the suggestion “full precision on”  
Sadly it doesnt change much. I compared it with a older Build on a different phone and the initial build on the s6 “wich still looks the best”

So either i dont understand the principal of using videos in ue4 or the problem still persists!

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [September 28, 2016, 5:22pm UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/13 "2016-09-28T17:22:16Z")

</div>

Odd. This did fix the issue for me and some others I’ve given the fix to for testing. Can you send me a test project to look at?

---

<div class="post-metadata">

**Author:** ![jinzay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jinzay](https://forums.unrealengine.com/u/jinzay)\
**Post date:** [January 7, 2019, 11:25am UTC](https://forums.unrealengine.com/t/gearvr-media-texture-aliasing-filtering-problem/368616/14 "2019-01-07T11:25:48Z")

</div>

Here are two ways this problem can be fixed.

1. Scale your video textures manually(multiple video files) according to the distance if possible, there are no mip maps.
2. For the corners we need a feature called alpha 2 coverage for masked, translucent works if you have respected point 1.

A2C is still missing as of now, so anything that is set to masked will alias.
