Hopefully this is an easy question, I have embedded our .GLB model into a webpage but the quality is really bad compared with when I upload it into the Sandbox.
I am using all the default options for the container, I am loading the model on button click using the following javascript…
I found that if I switch the viewer to fullscreen, then switch back to normal, the quality is much better. Its like the viewer is loading a lower resolution model initially.
it can be the css size, since babylon is taking the canvas size to render. It can also be the version that you are using, because we are constantly fixing issues. have you tried the latest 5.X version?
Check width/ height of viewer element and its parent element.
Seems in your case for the first time it is undefined.
Resize fixes the issue, check your parent element CSS.