Opened 7 years ago
Closed 7 years ago
#1701 closed defect (fixed)
Soft lighting bug after undisplayed opacity change
| Reported by: | Owned by: | Tom Goddard | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Graphics | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Darwin-18.2.0-x86_64-i386-64bit ChimeraX Version: 0.9 (2019-02-01) Description Hi, I've found what seems to be a bug with the lighting settings (see attached screen recording). To reproduce: 1. Open a model and cryoEM map. 2. Set the map to partial opacity in the color picker from volume viewer. 3. Undisplay the model (haven't checked if this step is strictly neccessary) 4. Change the map back to 100% opacity in the color picker After performing these steps, clicking soft lighting gives what looks like ambient or flat lighting, and clicking flat lighting gives silhouettes around the volume. Cheers Oli Log: > camera ortho > lighting soft > cofr centerOfView UCSF ChimeraX version: 0.9 (2019-02-01) © 2016-2019 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX > open 5tal 5tal title: Structure of rabbit RyR1 (Caffeine/ATP/Ca2+ dataset, class 1&2) [more info...] Chain information for 5tal #1 --- Chain | Description A F H J | Peptidyl-prolyl cis-trans isomerase FKBP1B B E G I | Ryanodine receptor 1 Non-standard residues in 5tal #1 --- ATP — adenosine-5'-triphosphate CA — calcium ion CFF — caffeine (3,7-dihydro-1,3,7-trimethyl-1H-purine-2,6-dione) UNK — unknown ZN — zinc ion > open 8382 fromDatabase emdb Opened emd_8382.map, grid size 400,400,400, pixel 1.25, shown at level 0.0174, step 2, values float32 > style selAtoms stick Changed 121456 atom styles > color #1 cornflower blue > color #1 gold > color #2 cornflower blue > ~display ~@CA > hide #!1 models > lighting soft > lighting soft > lighting full > lighting soft > lighting soft > lighting full > lighting flat > set silhouettes false > lighting flat > lighting flat > set silhouettes false > lighting full > lighting soft > lighting soft > set silhouettes true > set silhouettes false OpenGL version: 4.1 ATI-2.4.10 OpenGL renderer: AMD Radeon Pro 580 OpenGL Engine OpenGL vendor: ATI Technologies Inc. File attachment: chimerax_lighting_bug.mov
Attachments (1)
Change History (4)
by , 7 years ago
| Attachment: | chimerax_lighting_bug.mov added |
|---|
comment:1 by , 7 years ago
| Component: | Unassigned → Graphics |
|---|---|
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → Soft lighting bug after undisplayed opacity change |
comment:2 by , 7 years ago
Transparent models do not cast direct or ambient shadows. The bug here is that when you switch from a transparent map surface to an opaque one, the shadow casting does not update to cast shadows from the opaque surface. Hiding and displaying the map fixes it. Code needs to be fixed to detect that shadows need updating when transparency changes.
comment:3 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed.
Add transparency tracking code to catch volume surface transparency change. Still the appearance of a transparent surface with soft lighting is weird and ugly because transparent surfaces don't cast shadows. But now it is consistently ugly in the same way!
Added by email2trac