<div dir="ltr">
<div>Thank you very much, Tom.</div><div>Likewise, my images looked great with this alternative approach.<br></div><div>One small caveat with this, though, is that when you have solvent exposed, flexible side chains, which are not fully explained by the x-ray map (which is one of my cases), they may look artificial crossing the transparent map boundary. This can be overcomed with the method described by Elaine.</div><div>Thank you both again for helping.<br></div><div>All the best,</div><div>Andre.</div>

</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 31 de mar. de 2021 às 19:03, Tom Goddard <<a href="mailto:goddard@sonic.net">goddard@sonic.net</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Gustavo,<div><br></div><div>  Glad you noticed the smoothness of the surface.  I made it smoother than the default.  The surface came from the molmap command which computes a density map from the atomic model. That command uses a density map grid spacing of 1/3 the requested resolution by default, but I specified an extra option that used a grid spacing 1/8 of the resolution:</div><div><br></div><div><span style="white-space:pre-wrap">      </span>open 2gbp</div><div><span style="white-space:pre-wrap">        </span>molmap #1 8 gridSpacing 1</div><div><br></div><div>Also if you are doing this with a big molecule (100,000 atoms) the density map created may be very large and may be shown subsampled so the surface looks coarser.  Make sure to set the "step" to 1 in the Volume Viewer panel so that it uses the full resolution of the computed map instead of step 2 which would use only every other grid point.</div><div><br></div><div>  One more pro tip about that image composition example.  It only worked nicely because the atomic structure was completely behind the surface, so I could layer the surface on top.  If part of the atomic model was behind and part in front (for example with a cryoEM map surface), then the layering would not work well -- the composite image would have the surface in front everywhere.  Elaine's selection highlight approach can handle that situation with correct occlusions but the edging is not as nice as silhouettes.</div><div><br></div><div>  Tom</div><div><br><div><br><blockquote type="cite"><div>On Mar 31, 2021, at 1:00 PM, de Miranda Seabra, Gustavo <<a href="mailto:seabra@cop.ufl.edu" target="_blank">seabra@cop.ufl.edu</a>> wrote:</div><br><div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt;background-color:rgb(255,255,255)">Hi Tom,</div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt;background-color:rgb(255,255,255)"><br></div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt;background-color:rgb(255,255,255)">This looks beautiful! <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt">Just one tangential question: How do you get such a smooth surface? Can you share the exact commands you gave?</span></div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt;background-color:rgb(255,255,255)"><br></div><div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt;background-color:rgb(255,255,255)">Thanks!</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:14pt"><br></div><div id="gmail-m_892240293136413178Signature"><div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">--</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><b>Gustavo Seabra</b></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Assistant Scientist</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Center for Natural Products, Drug Discovery and Development (CNPD3)</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">Department of Medicinal Chemistry</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">College of Pharmacy</div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">University of Florida, Gainesville, FL, USA</div></div></div></div><div id="gmail-m_892240293136413178appendonsend" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div><hr style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline-block;width:722.25px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"></span><div id="gmail-m_892240293136413178divRplyFwdMsg" dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><font style="font-size:11pt" face="Calibri, sans-serif"><b>From:</b><span> </span>ChimeraX-users <<a href="mailto:chimerax-users-bounces@cgl.ucsf.edu" target="_blank">chimerax-users-bounces@cgl.ucsf.edu</a>> on behalf of Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</a>><br><b>Sent:</b><span> </span>Tuesday, March 30, 2021 8:55 PM<br><b>To:</b><span> </span>Andre LB Ambrosio <<a href="mailto:andre@ifsc.usp.br" target="_blank">andre@ifsc.usp.br</a>><br><b>Cc:</b><span> </span>ChimeraX Users Help <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank">chimerax-users@cgl.ucsf.edu</a>><br><b>Subject:</b><span> </span>Re: [chimerax-users] Displaying silhouette around specific visual elements</font><div> </div></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(250,70,22)"><b>[External Email]</b></span></div><table width="100%" cellspacing="0" cellpadding="0" border="0" align="left"></table><div>Hi Andre,<div><br></div><div>  If you are willing to go to a little trouble you can get silhouettes on an atomic model beneath a transparent surface that has no silhouettes.  You first save an image of the atomic model with silhouettes with no surface, then save an image of the transparent surface with no atomic model and no silhouettes, then overlay the second image on the first in a photo editor like Gimp.  Below is Elaine's example done this way.  The command to save the surface image with transparency for overlaying is "save transpsurf.png transparentBackground true".</div><div><br></div><div><span style="white-space:pre-wrap"></span>Tom</div><div><br></div><div>Overlay of two images.</div><div><img id="gmail-m_892240293136413178x_CECDC4D8-9293-4008-8CC5-3AF7F18285A6" src="cid:1788afb976aa77541731" width="663" height="491"></div><div><br></div><div>Atomic model image</div><div><br></div><div><img id="gmail-m_892240293136413178x_8AB40544-8105-4E3F-8286-14954F2D7C41" src="cid:1788afb976aa75912712" width="663" height="491"></div><div>Transparent surface image</div><div><img id="gmail-m_892240293136413178x_825BCD4B-A315-4054-8562-C963FC28C364" src="cid:1788afb976aa76729f23" width="663" height="491"><br><div><br><blockquote type="cite"><div>On Mar 30, 2021, at 3:11 PM, Andre LB Ambrosio <<a href="mailto:andre@ifsc.usp.br" target="_blank">andre@ifsc.usp.br</a>> wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div>Dear Elaine, that is excellent! It is the visual effect I was looking for indeed.</div><div>Thank you very much for this and thank you Tom for the very detailed response and for the feature request ticket.</div><div>Andre.<br></div></div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="ltr">Em ter., 30 de mar. de 2021 às 15:59, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" target="_blank">meng@cgl.ucsf.edu</a>> escreveu:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Andre,<div>Sometimes you can approximately "fake" this effect by using the selection outline.  It is not the same, however, as silhouettes; it will only go around the outside perimeter of the selected item(s).  For example, if I have a molecule inside a map surface, I can make the surface transparent, select the atomic structure, and make the selection outline color black etc. as in these commands, resulting in the appearance in the attached image.<div><br></div><div>open 2gbp<br>molmap protein 8<br>trans 70<br>view<br>set bgColor white<br>select @*<br>graphics selection color black<br><div><br></div><div>I hope this helps,</div><div>Elaine<br><div>-----<br>Elaine C. Meng, Ph.D.                       <br>UCSF Chimera(X) team<br>Department of Pharmaceutical Chemistry<br>University of California, San Francisco<br><br><img id="gmail-m_892240293136413178x_gmail-m_8106015797148862846D1B49E5A-D6C7-4A09-9A8C-5A426849C9EF" src="cid:1788afb976a79c999e34" width="477" height="297"><br><br></div><br><blockquote type="cite">On Mar 25, 2021, at 8:23 PM, Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</a>> wrote:<br><br>Hi Andre,<br><br> It is not currently possible to display silhouettes on some models and not others.<br><br> Several people have wanted this but I think it is complex to achieve.  The silhouettes show boundaries where the depth in the entire scene changes abruptly.  In order to have per-model silhouettes the ChimeraX GPU shader programs would need to compute an additional depth buffer separately for each model.  Also the silhouette edges are not currently drawn at a specific depth.  If per-model silhouettes were supported a stick model with silhouettes beneath a transparent surface needs to draw the silhouettes under the transparent surface so knowing the depth of the silhouette edge becomes important.  When not using silhouettes the shader programs need to not compute the extra per-model depth buffers otherwise it would slow down rendering even when not being used.  Adding these additional complexities to already complex graphics rendering shader programs have so far made this feature out of reach for our one graphics rendering developer (me).<br><br> I made a feature request for per-model silhouette edges and perhaps in the future we will find a simpler way to implement it that makes it feasible.<br><br><span style="white-space:pre-wrap"></span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rbvi.ucsf.edu_trac_ChimeraX_ticket_4420&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=IFgzc8_Vdkz-B7UF2uxuBCj87hyWuUEjWI2N297ETz4&m=buIaGFiuOEg93LpD7JBCYgWU_w9PFNqzQcrtEu3dwS4&s=4rNagowyowqf-kDt4FSpoXKb-pTc5iJJptB8I4YexpU&e=" target="_blank">https://www.rbvi.ucsf.edu/trac/ChimeraX/ticket/4420</a><br><br> Tom<br><br><blockquote type="cite">On Mar 25, 2021, at 10:09 PM, Andre LB Ambrosio <<a href="mailto:andre@ifsc.usp.br" target="_blank">andre@ifsc.usp.br</a>> wrote:<br><br>Dear all,<br><br>I wonder if it's possible to display silhouettes selectively in the same figure; for instance, displaying silhouettes only on structure representation (around sticks, spheres, cartoons and so on), but not around the maps or volumes that surround them.<br>Many thanks in advance, <br><br>Andre<br>_</blockquote></blockquote></div></div></div></div></blockquote></div><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none" clear="all"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">--<span> </span></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="ltr"><div>Andre LB Ambrosio</div><div>Associate Professor, IFSC/USP - Brazil</div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ifsc.usp.br_alba&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=IFgzc8_Vdkz-B7UF2uxuBCj87hyWuUEjWI2N297ETz4&m=buIaGFiuOEg93LpD7JBCYgWU_w9PFNqzQcrtEu3dwS4&s=ySFDlzFgm5R9qi6-4q_NIK-FlZAlewimOtx8sOwInfA&e=" target="_blank">www.ifsc.usp.br/alba</a><br></div></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">ChimeraX-users mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="mailto:ChimeraX-users@cgl.ucsf.edu" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">Manage subscription:</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__plato.cgl.ucsf.edu_mailman_listinfo_chimerax-2Dusers&d=DwMFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=IFgzc8_Vdkz-B7UF2uxuBCj87hyWuUEjWI2N297ETz4&m=buIaGFiuOEg93LpD7JBCYgWU_w9PFNqzQcrtEu3dwS4&s=BoyqN7j6m_LF1dTEncKL-XVOK27FnoiXypdwpI5ck6Y&e=" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a></div></blockquote></div></div></div></div></div></blockquote></div><br></div></div>_______________________________________________<br>
ChimeraX-users mailing list<br>
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>
Manage subscription:<br>
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" rel="noreferrer" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andre LB Ambrosio</div><div>Associate Professor, IFSC/USP - Brazil</div><div><a href="http://www.ifsc.usp.br/alba" target="_blank">www.ifsc.usp.br/alba</a><br></div></div></div>