<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 Joe,<div class=""><br class=""></div><div class=""> As web searches will indicate, OBJ file format does not support vertex colors. Triangle faces can be colored with a MTL file, but to color each triangle a different color will make immense files. The materials in the MTL file are usually used to make an entire object a single color. Chimera does not create or read MTL files. Chimera does not use triangle coloring, it uses vertex coloring where the color smoothly varies across the triangle. More commonly 3D formats and generic 3D scene software (e.g. Blender) use textures instead of vertex colors. Texture coordinates (u,v) are given for each vertex and the color is looked up in a texture image using u,v as the x,y coordinates in the image. Since Chimera does not use textures it does not have the u,v coordinates for the vertices. It is not easy to make the texture coordinates because you usually want them to have continuity across the surface. Without continuity, for instance if you just assign random u,v to lookup a color in an image you run into the problem that the u,v values are interpolated across a triangle which leads to a rainbow of colors as the texture image is interpolated from u1,v1 at one vertex to a far away u2,v2 at another vertex of the same triangle.</div><div class=""><br class=""></div><div class=""> In short you aren’t going to get vertex colors from the OBJ format that does not support vertex colors. While other formats like Collada support vertex colors, a lot of software just ignores those and only handles texture coloring.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 25, 2018, at 4:48 AM, Healey, Joe <<a href="mailto:J.R.J.Healey@warwick.ac.uk" class="">J.R.J.Healey@warwick.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Elaine,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Ok thank you. DAE do indeed seem to render the colours properly as I can see them in Mac Preview, though seemingly not in other tools as you say.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I don't suppose there is any way for chimera to write the colours out as an MTL file since this seems to be the approach other tools take.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I'm not very familiar with these file formats, but it seems to have something to do with colours being applied on vertices but not faces.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Any more info you have would be appreciated.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks, </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Joe</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class="">Joe Healey<br style="font-size: 10pt;" class=""></div><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class=""><br class=""></div><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class=""><span style="text-decoration: underline;" class=""> </span><br class=""></div><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class=""><span style="font-size: 10pt;" class="">M.Sc. B.Sc. (Hons) MRSB</span><br class=""></div><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class=""><span style="font-size: 10pt;" class=""></span><div class=""><span style="font-size: 10pt;" class="">PhD Student</span></div><div class=""><span style="font-size: 10pt;" class="">MOAC CDT, Senate House</span></div><div class=""><span style="font-size: 10pt;" class="">University of Warwick<br class=""></span></div><div class=""><span style="font-size: 10pt;" class="">Coventry<br class=""></span></div><div class=""><span style="font-size: 10pt;" class="">CV47AL<br class="">Mob: +44 (0) 7536 042620 | </span><span style="font-size: 10pt;" class="">Email:<span class="Apple-converted-space"> </span><a href="mailto:J.R.J.Healey@warwick.ac.uk" class="">J.R.J.Healey@warwick.ac.uk</a></span></div><div class=""><span style="font-size: 10pt;" class=""><br class=""></span></div><div class=""><span style="font-size: 10pt;" class="">Jointly working in:<br class=""></span></div><div class=""><span style="font-size: 10pt;" class=""><a href="http://www2.warwick.ac.uk/fac/med/research/tsm/microinfect/staff/waterfieldlab/" id="LPNoLP" class="">Waterfield Lab</a><span class="Apple-converted-space"> </span>(<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333330154419px; background-color: rgb(255, 255, 255);" class="">WMS </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333330154419px; background-color: rgb(255, 255, 255);" class="">Microbiology and Infecti</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333330154419px; background-color: rgb(255, 255, 255);" class="">on Un</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333330154419px; background-color: rgb(255, 255, 255);" class="">it)</span></span></div><div class=""><span style="font-size: 10pt;" class="">and the <a href="http://www2.warwick.ac.uk/fac/sci/chemistry/research/gibson/gibsongroup/" id="LPNoLP" class="">Gibson Lab</a> (Warwick Chemistry)<br class=""></span></div><div class=""><span style="font-size: 10pt;" class=""><br class=""></span></div><div class=""><span style="font-size: 10pt;" class="">Twitter:<span class="Apple-converted-space"> </span><a href="https://twitter.com/JRJHealey" id="LPNoLP" class="">@JRJHealey</a> | </span><span style="font-size: 10pt;" class="">Website:<span class="Apple-converted-space"> </span></span><a href="http://www2.warwick.ac.uk/fac/sci/moac/people/students/2013/joseph_healey" id="LPNoLP" style="font-size: 10pt;" class="">MOAC Page</a> | ORCID: <span id="ms-rterangepaste-start" class=""></span><span class=""><a href="http://orcid.org/0000-0002-9569-6738" class="">orcid.org/0000-0002-9569-6738</a></span><span id="ms-rterangepaste-end" class=""></span></div></div></div></div></div><hr tabindex="-1" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline-block; width: 747.734375px;" class=""><span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span><div id="divRplyFwdMsg" dir="ltr" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>23 June 2018 15:46:57<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Healey, Joe<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:chimera-users@cgl.ucsf.edu" class="">chimera-users@cgl.ucsf.edu</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Chimera-users] Exporting STL/COLLADA/OBJ with textures</font><div class=""> </div></div><div class="BodyFragment" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;"><font size="2" class=""><span style="font-size: 11pt;" class=""><div class="PlainText">Hi Joe,<br class="">As per the “export” docs...<br class=""><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/export.html" class="">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/export.html</a>><br class=""><br class="">COLLADA export includes colors but many readers do not interpret them correctly.<br class="">OBJ export is only single color per surface piece.<br class="">STL export does not include colors.<br class="">X3D, WebGL, ... are more complete and may include what you want.<br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <span class="Apple-converted-space"> </span><br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class="">> On Jun 23, 2018, at 6:34 AM, Healey, Joe <<a href="mailto:J.R.J.Healey@warwick.ac.uk" class="">J.R.J.Healey@warwick.ac.uk</a>> wrote:<br class="">><span class="Apple-converted-space"> </span><br class="">> Hi,<br class="">> Is it possible for Chimera to somehow export the textures/colour mappings of the models when saving the scene as a .dea/.obj/.stl?<br class="">> At the moment I can export the models, including surfaces (with correct transparency) but I haven't found an option for texturing/colouring?<br class="">> Cheers<br class="">> Joe<br class=""><br class=""></div></span></font></div><span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a></span><br style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></span></div></blockquote></div><br class=""></div></body></html>