<div dir="ltr">Code snippets for vtkOBJReader based loading:<div><a href="http://pastebin.com/mDySVFNN">http://pastebin.com/mDySVFNN</a></div><div><br></div><div>As for <span style="line-height:1.5">vtkOBJImporter, i only altered the local actor to be a  </span>vtkQuadricLODActor <span style="line-height:1.5">in </span><span style="line-height:1.5">vtkOBJImporterInternals.cxx.</span></div><div><div><div class="GmSign"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font color="#cccccc"><br></font></div><div><font color="#cccccc"><br></font></div><div><font color="#cccccc">----------------------------</font></div><div dir="ltr"><br><table border="0" cellpadding="0" width="450" style="border-spacing:0px;border-collapse:collapse;color:rgb(0,0,0);font-family:Lato,Arial,San-serif;font-size:14px;line-height:20px;table-layout:fixed;background-color:transparent"><tbody><tr><td align="left" valign="bottom" width="114" style="padding:0px"><p style="margin:0px 10px 10px 0px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><a href="http://www.smartmobilevision.com/" style="color:rgb(36,169,57);text-decoration:none;background-color:transparent" target="_blank"><img src="https://htmlsigs.s3.amazonaws.com/logos/files/000/392/110/landscape/smv_logo2.png" alt="SmartMobileVision" border="0" height="80" width="104" style="border:0px;vertical-align:middle"></a></p></td><td align="left" nowrap width="346" style="padding:0px"><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><span style="color:rgb(112,112,112);display:inline"><b>András Lehotay-Kéry<br></b></span><span style="color:rgb(112,112,112);background-color:transparent">Software Developer (Mobile / Computer Vision)</span><span style="background-color:transparent"><font color="#212121"> <br></font></span><a href="mailto:lka@smartmobilevision.com" style="color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent" target="_blank">lka@smartmobilevision.com</a></p><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px;color:rgb(33,33,33)"><span style="color:rgb(112,112,112)"></span></p><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><span style="font-weight:bold;color:rgb(112,112,112);display:inline">SmartMobileVision</span> <span style="display:inline"><br></span><span></span><span style="color:rgb(112,112,112);display:inline">Szent Gellért tér 3, 1114 Budapest, Hungary</span> <span></span><span style="display:inline"><br></span><a href="http://www.smartmobilevision.com/" style="color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent" target="_blank">www.smartmobilevision.com</a></p><p style="margin:0px 0px 10px;font-size:0px;line-height:0;font-family:Helvetica,Arial,sans-serif"><a href="https://plus.google.com/+Andr%C3%A1sLehotayK%C3%A9ry" style="color:rgb(36,169,57);text-decoration:none;display:inline;background-color:transparent" target="_blank"><img width="24" height="24" src="https://s3.amazonaws.com/htmlsig-assets/square/googleplus.png" alt="Google +" style="border:none;vertical-align:middle;margin-bottom:2px;display:inline"> </a><span style="white-space:nowrap;display:inline"><img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2" style="border:0px;vertical-align:middle"> </span><a href="https://www.linkedin.com/in/andras-lehotay-kery-8abb899b" style="color:rgb(36,169,57);text-decoration:none;display:inline;background-color:transparent" target="_blank"><img width="24" height="24" src="https://s3.amazonaws.com/htmlsig-assets/square/linkedin.png" alt="LinkedIn" style="border:none;vertical-align:middle;margin-bottom:2px;display:inline"> </a><span style="white-space:nowrap;display:inline"><img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2" style="border:0px;vertical-align:middle"></span></p></td></tr></tbody></table><table border="0" cellpadding="0" width="450" style="border-spacing:0px;border-collapse:collapse;color:rgb(0,0,0);font-family:Lato,Arial,San-serif;font-size:14px;line-height:20px;table-layout:fixed;background-color:transparent"></table><div><div dir="ltr"><div><div dir="ltr"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 26 May 2016 at 14:23 András Lehotay-Kéry <<a href="mailto:lkandris@gmail.com">lkandris@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi folks,<div>A quick question:  when i try to load an OBJ model using vtkOBJReader, assign it to a vtkQuadricLODActor and add texture to this actor, there are no textures visible. Futhermore, when i load the obj with vtkOBJImporter, it seems the faces are gone.</div><div><br></div><div>Attached screenshots below.</div><div><br></div><div>Thanks in advance!<br></div><div><br></div><div>vtkOBJReader + LOD based rendering = no textures<br></div><div><img src="cid:154ed04a593c3de79b62" alt="vtkOBJReader+LOD.jpg" style="max-width:100%"><br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>vtkOBJImporter + LOD <span style="line-height:1.5">based rendering </span><span style="line-height:1.5">= no textures </span><span style="line-height:1.5">+ incorrect geometry</span></div><div><img src="cid:154ed04c39dccbe7a853" alt="vtkOBJImporter+LOD.jpg" style="max-width:100%"></div><div><br></div><div><font color="#cccccc"><br></font></div><div><font color="#cccccc">----------------------------</font></div><div dir="ltr"><br><table border="0" cellpadding="0" width="450" style="border-spacing:0px;border-collapse:collapse;color:rgb(0,0,0);font-family:Lato,Arial,San-serif;font-size:14px;line-height:20px;table-layout:fixed;background-color:transparent"><tbody><tr><td align="left" valign="bottom" width="114" style="padding:0px"><p style="margin:0px 10px 10px 0px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><a href="http://www.smartmobilevision.com/" style="color:rgb(36,169,57);text-decoration:none;background-color:transparent" target="_blank"><img src="https://htmlsigs.s3.amazonaws.com/logos/files/000/392/110/landscape/smv_logo2.png" alt="SmartMobileVision" border="0" height="80" width="104" style="border:0px;vertical-align:middle"></a></p></td><td align="left" nowrap width="346" style="padding:0px"><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><span style="color:rgb(112,112,112);display:inline"><b>András Lehotay-Kéry<br></b></span><span style="color:rgb(112,112,112);background-color:transparent">Software Developer (Mobile / Computer Vision)</span><span style="background-color:transparent"><font color="#212121"> <br></font></span><a href="mailto:lka@smartmobilevision.com" style="color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent" target="_blank">lka@smartmobilevision.com</a></p><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px;color:rgb(33,33,33)"><span style="color:rgb(112,112,112)"></span></p><p style="margin:0px 0px 10px;font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px"><span style="font-weight:bold;color:rgb(112,112,112);display:inline">SmartMobileVision</span> <span style="display:inline"><br></span><span></span><span style="color:rgb(112,112,112);display:inline">Szent Gellért tér 3, 1114 Budapest, Hungary</span> <span></span><span style="display:inline"><br></span><a href="http://www.smartmobilevision.com/" style="color:rgb(71,124,204);text-decoration:none;display:inline;background-color:transparent" target="_blank">www.smartmobilevision.com</a></p><p style="margin:0px 0px 10px;font-size:0px;line-height:0;font-family:Helvetica,Arial,sans-serif"><a href="https://plus.google.com/+Andr%C3%A1sLehotayK%C3%A9ry" style="color:rgb(36,169,57);text-decoration:none;display:inline;background-color:transparent" target="_blank"><img width="24" height="24" src="https://s3.amazonaws.com/htmlsig-assets/square/googleplus.png" alt="Google +" style="border:none;vertical-align:middle;margin-bottom:2px;display:inline"> </a><span style="white-space:nowrap;display:inline"><img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2" style="border:0px;vertical-align:middle"> </span><a href="https://www.linkedin.com/in/andras-lehotay-kery-8abb899b" style="color:rgb(36,169,57);text-decoration:none;display:inline;background-color:transparent" target="_blank"><img width="24" height="24" src="https://s3.amazonaws.com/htmlsig-assets/square/linkedin.png" alt="LinkedIn" style="border:none;vertical-align:middle;margin-bottom:2px;display:inline"> </a><span style="white-space:nowrap;display:inline"><img src="https://s3.amazonaws.com/htmlsig-assets/spacer.gif" width="2" style="border:0px;vertical-align:middle"></span></p></td></tr></tbody></table><table border="0" cellpadding="0" width="450" style="border-spacing:0px;border-collapse:collapse;color:rgb(0,0,0);font-family:Lato,Arial,San-serif;font-size:14px;line-height:20px;table-layout:fixed;background-color:transparent"></table><div><div dir="ltr"><div><div dir="ltr"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div>