# Bitmap flickering on a vertical polygon

**URL:** <https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290>\
**Category:** Help & Support\
**Created:** [December 10, 2020, 2:15pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290 "2020-12-10T14:15:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 2:15pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/1 "2020-12-10T14:15:34Z")

</div>

hello,  
i have massive bitmap flickering of text if i´m further away of a vertikal polygonplane…if i´m getting near it becomes quite good. any chance to get that solved?  
the texture is about 2000x2000 px 8 bit RGB jpg. it has not only text but also a picture of a product on it. i just played a bit with the texture settings mipmap/filtering, but it did not get better.

any idea?

big thanks for help  
tomes

---

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [December 10, 2020, 2:21pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/2 "2020-12-10T14:21:16Z")

</div>

Hi @tomes,

Most likely that’s z-fighting, to solve it you can reduce the Near/Far clipping planes of your active camera.

Select it and reduce the range between the min/max values:

![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/8/82b582b18b552ae2475ae678e474172e4ff7a5a2.png)

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 2:31pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/3 "2020-12-10T14:31:22Z")

</div>

> [@Leonidas](#):
>
> reduce the range between the min/max values:

thanks for your time and will.  
that did not help as i see.  
i should have a better bitmap filtering like in 3dsmax vray or mentalray rendering.this point, linear did not fix anything  
thanks again!

[https://playcanvas.com/project/745668/overview/test2](https://playcanvas.com/project/745668/overview/test2)

you can have a look here if you want to

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 2:59pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/4 "2020-12-10T14:59:27Z")

</div>

> [@tomes](#):
>
> [PlayCanvas 3D HTML5 Game Engine](https://playcanvas.com/project/745668/overview/test2)
> 
> you can have a look here if you want to

I can’t see anything in the launch tab?

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 3:10pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/5 "2020-12-10T15:10:34Z")

</div>

you dont see the plane with the bitmap?

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 3:10pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/6 "2020-12-10T15:10:47Z")

</div>

Not in the launch tab. [https://launch.playcanvas.com/1051046?debug=true](https://launch.playcanvas.com/1051046?debug=true)

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 3:25pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/7 "2020-12-10T15:25:13Z")

</div>

ok launch tab works now, sorry

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 3:28pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/8 "2020-12-10T15:28:39Z")

</div>

if you only go back or forward you can see that

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 4:54pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/9 "2020-12-10T16:54:10Z")

</div>

The issue here is that it’s a very large texture that is trying to render in a smaller physical pixel space so data/pixels are getting lost.

Using linear filtering helps but not by much. You would be better off using texture size that is closer to the size it would be rendered at.

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 5:15pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/10 "2020-12-10T17:15:04Z")

</div>

thanks steven,  
not that easy, cause it is in a big hall and you see it from far and near but it would be be good if it would be readable also from far with better quality. possible to work with lod maps? or is an other material/shader better?  
thanks for your help !

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 5:19pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/11 "2020-12-10T17:19:45Z")

</div>

You may need different versions of the texture to be used at different distances? I’m actually surprised that the mipmaps aren’t helping here.

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 5:23pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/12 "2020-12-10T17:23:54Z")

</div>

can i do something more than tick “mipmaps” in the texture?

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 5:36pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/13 "2020-12-10T17:36:38Z")

</div>

I’ve been told there could be a ‘bias’ value that could be tweaked but I don’t think it is exposed in the engine 🤔

You might be better off using smaller texture by default and load a larger one when the user is close.

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 5:45pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/14 "2020-12-10T17:45:43Z")

</div>

thanks steven.  
i ask our programmers if they can test a 3 lod switch between the different textures.

i you have a further good idea come back to me please.

good time! thanks for your time and help

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 6:17pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/15 "2020-12-10T18:17:53Z")

</div>

I noticed the texture was not square and POT and modified it to be. Looks better now at a distance. Currently raising it with the team to see if there’s an issue with our engine here:

[https://playcanvas.com/editor/scene/1052006](https://playcanvas.com/editor/scene/1052006)

Kapture 2020-12-10 at 18.08.11

[//forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/8/849acb1059c20521361795b35216bd55dfa49444.mp4](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/8/849acb1059c20521361795b35216bd55dfa49444.mp4)

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 7:01pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/16 "2020-12-10T19:01:25Z")

</div>

well thats great…!! i understand the square, but what is POT, how do i get it?

thanks for fixing that!

---

<div class="post-metadata">

**Author:** ![LeXXik](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/lexxik/32/6953_2.png) [@LeXXik](https://forum.playcanvas.com/u/LeXXik)\
**Post date:** [December 10, 2020, 7:09pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/17 "2020-12-10T19:09:48Z")

</div>

POT = Power Of Two is a number of the form 2^n, where n is integer (2, 4, 8, 16, 32, …).

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 7:18pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/18 "2020-12-10T19:18:10Z")

</div>

I don’t think it has to be square as well, just POT dimensions (power of 2)

---

<div class="post-metadata">

**Author:** ![tomes](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@tomes](https://forum.playcanvas.com/u/tomes)\
**Post date:** [December 10, 2020, 7:26pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/19 "2020-12-10T19:26:10Z")

</div>

> [@yaustar](#):
>
> d POT and modified it to be.

thanks,still found it…same as square, but you can fix that at import stage.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [December 10, 2020, 7:34pm UTC](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290/20 "2020-12-10T19:34:53Z")

</div>

Dimensions like 256 x 512 should also work too

[Next page](https://forum.playcanvas.com/t/bitmap-flickering-on-a-vertical-polygon/16290.md?page=2)
