# Antialiasing on model

**URL:** <https://forum.babylonjs.com/t/antialiasing-on-model/10518>\
**Category:** Questions\
**Created:** [May 3, 2020, 7:55pm UTC](https://forum.babylonjs.com/t/antialiasing-on-model/10518 "2020-05-03T19:55:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YouJ](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/youj/32/21196_2.png) [@YouJ](https://forum.babylonjs.com/u/YouJ)\
**Post date:** [May 3, 2020, 7:55pm UTC](https://forum.babylonjs.com/t/antialiasing-on-model/10518/1 "2020-05-03T19:55:22Z")

</div>

Hello,

I am applying an antialiasing effect on my model but even after adding some postprocessing, I can still notice jittering on the edges of the model which is very disturbing the quality overall.

The postprocess effect I am using:

var postProcess = new FxaaPostProcess(“fxaa”, 2.0, scene.camera);  
postProcess.samples = 8;

I want to know whether 8 is the maximum number of samples I can apply using this postprocess. In addition, is this function enough for antialiasing or is there more functions that can help with this.

Any help is appreciated,  
Thanks!

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [May 4, 2020, 2:32pm UTC](https://forum.babylonjs.com/t/antialiasing-on-model/10518/2 "2020-05-04T14:32:42Z")

</div>

I think a PG would help here.

You can also try to set `engine.setHardwareScalingLevel(0.5)` to help with antialiasing (note it is not free, the scene will be rendered at twice the resolution before being downsampled).

---

<div class="post-metadata">

**Author:** ![YouJ](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/youj/32/21196_2.png) [@YouJ](https://forum.babylonjs.com/u/YouJ)\
**Post date:** [May 12, 2020, 1:49am UTC](https://forum.babylonjs.com/t/antialiasing-on-model/10518/3 "2020-05-12T01:49:25Z")

</div>

Hello @Evgeni_Popov,

I applied engine.setHardwareScalingLevel(0.5) as you said and I can confirm that it improved the antialiasing a lot! It didn’t remove it completely but it is a great improvement.

Thank you
