# Babylon.js Viewer vs. Sandbox

**URL:** <https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375>\
**Category:** Questions\
**Created:** [September 23, 2020, 1:45pm UTC](https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375 "2020-09-23T13:45:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oJAHRASTAo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ojahrastao/32/3255_2.png) [@oJAHRASTAo](https://forum.babylonjs.com/u/oJAHRASTAo)\
**Post date:** [September 23, 2020, 1:45pm UTC](https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375/1 "2020-09-23T13:45:59Z")

</div>

Hey all,  
I’ve noticed this phenomenon in different deployments as well, and I just don’t have the immediate knowledge to understand what is going on specifically and how to fix it. We have embedded a canvas into a webpage, and everything seems to work, except the model quality just isn’t the same as Sandbox. What kind of black magic is Sandbox doing to make things look so much better even at distance?

![bikecompare](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/8373d8c1ab4efac8e1b158dd8ea5992faee04e64.png)

The aliasing found in the default Babylon.js Viewer is quite visible, in particular to the spoke almost completely falling out. In comparison, Sandbox displays them near perfect even at the same camera distance from the object.

I understand sandbox does not have FXAA turned on by default, so I don’t want to just flip that switch, and say “oh that looks better”. Is there something deeper or parameters that must be set to achieve Sandbox results?

Viewer Snippet taken from example docs:

```
<html>
<head>
  <title>Babylon.js Viewer - Display a 3D model</title>
  <script src="https://preview.babylonjs.com/viewer/babylon.viewer.js"></script> 
</head>
<body>
<babylon model="asset.glb" templates.main.params.fill-screen="true"></babylon>
</body>
</html>

```

Thanks for any assistance!

Cheers.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 23, 2020, 2:12pm UTC](https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375/2 "2020-09-23T14:12:24Z")

</div>

Sandbox does not use any sort of post process which might explain the diff, I am also suspecting the canvas size not being the same between your versions ?

This would impact greatly.

---

<div class="post-metadata">

**Author:** ![oJAHRASTAo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ojahrastao/32/3255_2.png) [@oJAHRASTAo](https://forum.babylonjs.com/u/oJAHRASTAo)\
**Post date:** [September 23, 2020, 2:19pm UTC](https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375/3 "2020-09-23T14:19:42Z")

</div>

Sandbox or Viewer does not do any post processing? I expect neither unless set for a rendering pipeline.

The canvas size has been my suspect as well, but if I resize the window to match canvas sizes, and view in developer tools the sizes are the same or close enough, should I not expect similar visual results?

Or if I choose “Full Screen” for viewer, and hide ui in Sandbox (which is essentially fullscreen), should that not atleast results in the same visual fidelity?

I’m honestly asking, because I am a 3d artist not a web developer, so the mysteries of canvas and etc. could well be the issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [September 23, 2020, 2:31pm UTC](https://forum.babylonjs.com/t/babylon-js-viewer-vs-sandbox/14375/4 "2020-09-23T14:31:45Z")

</div>

Yup this is definitely strange, could you share an online version to double check ?
