3D display differences on the desktop and web display

179 views
Skip to first unread message

MR.Klien

unread,
Dec 18, 2017, 10:20:12 PM12/18/17
to cesium-dev

cesium:1.40
OS:Win10 Install dx9.0c
chrome  63.0.3239.84(64)
graphics card : gtx1050
graphics driver: 23.21.13.8813

graphics card:gtx1050

I want to know what is causing this situation
Is the reason for FXAA?

DESKTOP


WEB







Sean Lilley

unread,
Dec 19, 2017, 6:47:39 PM12/19/17
to cesium-dev
It could be FXAA related. Have you tried turning FXAA off for both and comparing the difference?

Another possibility is the web version is using the window's devicePixelRatio to render to a small viewport than the screen, which can cause it to appear blurry after it is upsampled. It's possible that attribute is not part of the Electron viewer.

Check out this bullet in the Cesium 1.18 change log. Can you try including the code below and see if it makes a difference?
  • Cesium now honors window.devicePixelRatio on browsers that support the CSS imageRendering attribute. This greatly improves performance on mobile devices and high DPI displays by rendering at the browser-recommended resolution. This also reduces bandwidth usage and increases battery life in these cases. To enable the previous behavior, use the following code:
    if(Cesium.FeatureDetection.supportsImageRenderingPixelated()){
        viewer.resolutionScale = window.devicePixelRatio;
    }
Message has been deleted
Message has been deleted

MR.Klien

unread,
Dec 19, 2017, 9:43:55 PM12/19/17
to cesium-dev
Thank you very much .

This devicePixelRatio to improve the quality is obvious.

But will Caton, and anti-aliasing will be worse when the scene is pulled away



在 2017年12月19日星期二 UTC+8上午11:20:12,MR.Klien写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages