Skip to content

View blurred on high resolution screen  #40

@asaboor-gh

Description

@asaboor-gh

I came up using weas-widget in python and find out blurry crystal structure on a 3K screen. Since dependency of weas-widget goes through this package directly to THREE.js, I tried to see what may be causing the issue using THREE.js in Observablehq notebook and found out that blurriness comes from not setting pixel ratio properly.

In this package code, after definition of renderer somewhere after this line, if you may add following line of code

renderer.setPixelRatio(devicePixelRatio);

That would show scene completely perfect on any device. I hope it will solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions