[chimerax-users] Showing waters changes lighting
Tom Goddard
goddard at sonic.net
Fri Dec 18 17:06:38 PST 2020
Hi DA,
Elaine is right that if you have a water very far away from the map it would likely cause what you observe. The reason is that the water out in deep space has to also cast a shadow, so the "shadow maps" which are two dimensional images of lights cast from 64 different directions have to extend to cover that distant water and your surface. Then they don't have enough resolution and it causes it to look as if no shadows are cast at all.
The other possibility is that it is a bug and the shadow recomputation just went astray and we would want a bug report.
If you really want to try to tweak the parameters of the lighting to cover a very distant water and still look good by using huge shadow map images look at the ChimeraX lighting command msMapSize and msDepthBias options
https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/lighting.html#shadows <https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/lighting.html#shadows>
That probably cannot work because the shadow map size is limited by the graphics driver and current graphics drivers only support 16384 as a max texture size for the highest end graphics cards. The default msMapSize is 1024 so at most you can get 16x larger coverage of the shadows.
Tom
> On Dec 18, 2020, at 3:41 PM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
>
> Hi Daniel,
> After showing waters, can you restore the desired appearance with "light soft shad f" or "light full shad f"? I'm guessing no...
>
> Other guesses are that it's either a graphics bug or some of the waters are extremely far away in the back making the visible scene dimensions change drastically, changing the position of the depth-cueing ramp and other lighting-related calculations.
>
> One reason I thought of scene-depth change is that the silhouettes are shown when the objects are some fraction of the total depth apart, and in your after-water pictures, there are many fewer silhouettes, suggesting the overall depth is now huge. See "graphics silhouette"
> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/graphics.html#silhouettes>
>
> However to really figure it out we would probably need to you use Help... Report a Bug and attach a session that exhibits the problem.
>
> I hope this helps,
> Elaine
> -----
> Elaine C. Meng, Ph.D.
> UCSF Chimera(X) team
> Department of Pharmaceutical Chemistry
> University of California, San Francisco
>
>> On Dec 18, 2020, at 2:44 PM, Daniel Asarnow <asarnow at msg.ucsf.edu> wrote:
>>
>> Hi all,
>> I have a few maps and models loaded, which have a couple hundred water molecules. When I display all the waters using 'show :HOH' the lighting changes. It makes "soft" look like "flat" and creates what looks like more ambient reflection in "full" or "simple." I embedded some screenshots below.
>>
>> My guess is something about a depth or lighting calculation is affected by all the waters, does anyone recognize what setting would need to change to correct this?
>>
>> Soft, shadows false:
>> <image.png>
>> Same after show :HOH
>> <image.png>
>> Full, shadows false
>> <image.png>
>> Same after show :HOH
>> <image.png>
>>
>> Best,
>> -da
>
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201218/f61e1264/attachment.html>
More information about the ChimeraX-users
mailing list