<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Beginner: How do I export this multi file as one .obj with the materials intact? in Meshmixer Forum</title>
    <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404619#M765</link>
    <description>&lt;P&gt;Yes, that's a limitation of MM happening on combined textures...&lt;/P&gt;
&lt;P&gt;You need to make sure that your source obj&amp;gt;mtl&amp;gt;image bundles do not use the same material:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say there are just two source obj&amp;gt;mtl&amp;gt;image bundles each using a single texture:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First A.obj says:&amp;nbsp;"usemtl Material1" and A.mtl says: "newmtl Material1 ./ map_Kd Image1.bmp"&lt;/LI&gt;
&lt;LI&gt;Second B.obj says: "usemtl Material1" and B.mtl says "newmtl Material1 ./ map_Kd Image2.bmp"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;means both objects use one material: Material1. No problem as long as these are separate objects. But if you write the files to one combined obj MM merges the materials too and uses one image only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead if&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First A.obj says:&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;" and A.mtl says: "newmtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt; ./ map_Kd Image1.bmp"&lt;/LI&gt;
&lt;LI&gt;Second B.obj says: "usemtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;" and B.mtl says "newmtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt; ./ map_Kd Image2.bmp"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;means there are different materials and MM can keep the different textures in a combined file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to open &lt;U&gt;one&lt;/U&gt; obj file in a text editor and change the line&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;" to&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;AND the corresponding .mtl's line&amp;nbsp;"newmtl Material&lt;FONT color="#FF0000"&gt;1&lt;FONT color="#000000"&gt;" to&amp;nbsp;"newmtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Could be easier, but that's life...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 20:52:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-06T20:52:13Z</dc:date>
    <item>
      <title>Beginner: How do I export this multi file as one .obj with the materials intact?</title>
      <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404203#M764</link>
      <description>&lt;P&gt;As a part of a project I 3D scanned all these objects to combine them all into one single 3D object, but whenever I try to export it will take the material of one object and stretch it over all the others. I wanted to know if there is a way that I can keep the original textures of each individual, but export it as one solid object? Or is this just a huge ask and not possible? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404203#M764</guid>
      <dc:creator>julia.leclair</dc:creator>
      <dc:date>2022-09-06T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: How do I export this multi file as one .obj with the materials intact?</title>
      <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404619#M765</link>
      <description>&lt;P&gt;Yes, that's a limitation of MM happening on combined textures...&lt;/P&gt;
&lt;P&gt;You need to make sure that your source obj&amp;gt;mtl&amp;gt;image bundles do not use the same material:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say there are just two source obj&amp;gt;mtl&amp;gt;image bundles each using a single texture:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First A.obj says:&amp;nbsp;"usemtl Material1" and A.mtl says: "newmtl Material1 ./ map_Kd Image1.bmp"&lt;/LI&gt;
&lt;LI&gt;Second B.obj says: "usemtl Material1" and B.mtl says "newmtl Material1 ./ map_Kd Image2.bmp"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;means both objects use one material: Material1. No problem as long as these are separate objects. But if you write the files to one combined obj MM merges the materials too and uses one image only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead if&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First A.obj says:&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;" and A.mtl says: "newmtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt; ./ map_Kd Image1.bmp"&lt;/LI&gt;
&lt;LI&gt;Second B.obj says: "usemtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;" and B.mtl says "newmtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt; ./ map_Kd Image2.bmp"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;means there are different materials and MM can keep the different textures in a combined file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to open &lt;U&gt;one&lt;/U&gt; obj file in a text editor and change the line&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;" to&amp;nbsp;"usemtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;AND the corresponding .mtl's line&amp;nbsp;"newmtl Material&lt;FONT color="#FF0000"&gt;1&lt;FONT color="#000000"&gt;" to&amp;nbsp;"newmtl Material&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Could be easier, but that's life...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 20:52:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404619#M765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-06T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: How do I export this multi file as one .obj with the materials intact?</title>
      <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404874#M766</link>
      <description>&lt;P&gt;Thank you so much! &amp;amp; how would I open the text editor?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So sorry just completely new to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I figured out what you meant and opened it in Sublime Text and it completely worked!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now begs the question if i have to re-position my old project or can i use the updated files even through they were already imported before i did the change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 01:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11404874#M766</guid>
      <dc:creator>julia.leclair</dc:creator>
      <dc:date>2022-09-07T01:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: How do I export this multi file as one .obj with the materials intact?</title>
      <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11405746#M767</link>
      <description>&lt;P&gt;In case you did import files before changing equal materials I would try to change the links after an export to a single file.&lt;/P&gt;
&lt;P&gt;If you export a scene (using different textures linked to the same material) as one combined object MM writes a combined .obj, a .mtl file and a single texture image.&lt;/P&gt;
&lt;P&gt;First thing to do is to copy all the missing source textures to the combined output's directory and maybe you rename the images in a meaningful way.&lt;/P&gt;
&lt;P&gt;Now open the output .obj in a text editor. The shown example file is made of only four triangle faces for each part. So your file should be much longer.. Use the editor's Search and Replace functionality.&lt;/P&gt;
&lt;P&gt;You'll find several&amp;nbsp;&lt;FONT color="#993300"&gt;usemtl &lt;EM&gt;Material0 ( Material0 might be different)&amp;nbsp;&lt;/EM&gt;&lt;FONT color="#000000"&gt;lines splitting the lines starting with "f" (Faces). All f-lines below such a usemtl-line use the material until a next usemtl-line.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;Change Material0 to ascending Material0, Material1, Material2, Material3... so there are no duplicated lines any more and save&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ohne Titel 10.jpeg" style="width: 878px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1112570iB823ACFCAC6D8198/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ohne Titel 10.jpeg" alt="Ohne Titel 10.jpeg" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;Now open the .mtl and change the &lt;FONT color="#FF0000"&gt;material&lt;/FONT&gt; names and the linked &lt;FONT color="#FF6600"&gt;image name&lt;/FONT&gt; (and maybe format). Material0 should be ok. Ignore the NO_Material. This is just used for regions where no texture coordinates exist.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;The problem might be to find the right image for the very part. The order should be the same as you added the partial objects to the&amp;nbsp;scene (not sure)...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ohne Titel 12.jpeg" style="width: 650px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1112575i12F571082EB7C7EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ohne Titel 12.jpeg" alt="Ohne Titel 12.jpeg" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 10:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11405746#M767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T10:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: How do I export this multi file as one .obj with the materials intact?</title>
      <link>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11405754#M768</link>
      <description>So sorry, there's a mistake in the lower image. The lower red arrow's end should be "newmtl Material2"</description>
      <pubDate>Wed, 07 Sep 2022 11:01:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/meshmixer-forum/beginner-how-do-i-export-this-multi-file-as-one-obj-with-the/m-p/11405754#M768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T11:01:22Z</dc:date>
    </item>
  </channel>
</rss>

