-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View blurred on high resolution screen #40
Comments
Hi @asaboor-gh , thanks for reporting the issue and providing a suggestion for fixing it. I have implemented the fix, and published a new version (v0.1.13) of |
Hi @asaboor-gh , thanks for the detailed description of the issue. It maybe fixed in this PR. I have released new versions of weas and weas-widget. Please upgrade weas-wdiget and try again. |
Hi @asaboor-gh , good to know that you are using the widget in your package thanks for your suggestions! I will fix/implement them when I have time.
Could you give an example of this? |
Sorry that was a confusion between previous and after fix of resolution. It looked very small after setting |
Hi @asaboor-gh , I have implemented some of your suggestions: Atoms legendOne can see the legend in the bottom-right corner. viewer.avr.show_atom_legend = True Update the size of boundary atomsNow, when the size of the atoms in the unit cell changes, the size of the boundary atoms should be updated. |
By default, one bond pair is enough to draw all the bonds; in your case, I think the distance between Ga, and As is longer than the bond max length; that's why there is no bond. Could you share the file (e.g., cif) of your structure? |
Hi @asaboor-gh , thanks for the feedback, I fixed the issues in the latest version (0.1.19), from weas_widget import WeasWidget
from ase.io import read
atoms = read("GaAs.cif")
w = WeasWidget()
w.from_ase(atoms)
w.avr.species.settings["Ga"]["color"] = "red"
w.avr.species.settings["As"]["color"] = "blue"
w.avr.bond.settings["Ga-As"]["color1"] = "red"
w.avr.bond.settings["Ga-As"]["color2"] = "blue"
w.avr.bond.settings["Ga-As"]["max"] = 4.0
w.avr.boundary = [[-0.1, 1.1], [-0.1, 1.1], [-0.1, 1.1]]
# w.avr.show_bonded_atoms = True
w.avr.model_style = 1
w.avr.show_atom_legend=True
w.camera.setting = {"direction": [0, -1, 0.5], "zoom": 1.0}
w |
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 codeThat would show scene completely perfect on any device. I hope it will solve the problem.
The text was updated successfully, but these errors were encountered: