<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Gabor,<div class=""><br class=""></div><div class=""> Glad you found a solution. It makes sense, the lighting command msDepthBias option (default 0.01) is specified as a fraction of the scene diameter. The default value of 0.01 means that crevices with depth is less than 1% of the scene diameter won't be shadowed. Since your scene diameter is large relative to the crevices you want to shadow you need a smaller depth bias value. The default setting is trying to give best appearance in typical cases -- shadowing bigger features instead of very small ones.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/lighting.html" class="">https://www.rbvi.ucsf.edu/chimerax/docs/user/commands/lighting.html</a></div><div class=""><br class=""></div><div class=""> Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 14, 2019, at 1:18 AM, Gabor PAPAI wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Tom,
<div class=""><br class="">
</div>
<div class="">The second model was a very long DNA (around 1000 Å). I guess the scene size changed how the shadows are cast. Cropping the DNA helps, but I try to set up a large scene. I tried to increase the msMapSize this does not help. However when I lowered
the msDepthBias from the default 0.01 to 0.001, the shadowing became close to the appearance of the first model alone.</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Gabor<br class="">
<div class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
---<br class="">
Gabor Papai<br class="">
IGBMC<br class="">
Integrated Structural Biology<br class="">
1, rue Laurent Fries, Bp 10142<br class="">
67404 Illkirch, France<br class="">
Tel: +33-3-69485288</div>
</span></span></div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 11 Oct 2019, at 19:12 , Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Gabor,
<div class=""><br class="">
</div>
<div class=""> The soft lighting is supposed to look as if shadows are cast from all directions, so you would not expect it to change when a second model is opened (except to the extent that the second model shadows the first). But that is the ideal situation
and approximations have to be made to compute the lighting fast enough and I am pretty sure those approximations are causing your problem. Take a look at the lighting command and try increasing the msMapSize (multi-shadow depth map size) from 1024 to a larger
value like 2048 and see if that makes shadows darker. This parameter will effect shadow appearance as the size of the scene changes. Basically it effects the granularity of the shadows -- how large a crevice in your molecule needs to be before it appears
darker due to shadows. Other multi-shadow lighting parameters "multiShadow" (number of directions to cast shadows from (default 64) and msDepthBias (avoids self-shadowing, default 0.01 times scene size).</div>
<div class=""><br class="">
</div>
<div class=""> I have a meeting now so I cannot experiment with this. Tell us if you find something that works.</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Tom<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 11, 2019, at 1:57 AM, Gabor PAPAI <<a href="mailto:papai@igbmc.fr" class="">papai@igbmc.fr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear ChimeraX team,
<div class=""><br class="">
</div>
<div class="">If I open a second model in ChimeraX (0.91) the ambient occlusion in soft lighting mode on the first model disappears or becomes diminished. How can I revert this effect? I attach an image to illustrate this phenomenon. The only change between
the two displays that I opened a model of DNA and placed close to the first model.</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Gabor</div>
<div class=""><span id="cid:6AAD58A0-1B6C-4362-8C29-57D033327EBF@igbmc.u-strasbg.fr" class=""><lighting_change.png></span><br class="">
<div class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
---<br class="">
Gabor Papai<br class="">
IGBMC<br class="">
Integrated Structural Biology<br class="">
1, rue Laurent Fries, Bp 10142<br class="">
67404 Illkirch, France<br class="">
Tel: +33-3-69485288</div>
</span></span></div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
ChimeraX-users mailing list<br class="">
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
Manage subscription:<br class="">
<a href="http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="">http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div></blockquote></div><br class=""></div></body></html>