<div dir="ltr">Just a few at most. Will try it then.<div>Does VTK provide any dynamic texture desampling at post load? That way i can isolate low-res texture usage to the mobile viewer and i still get to keep my fancy 4k textures.<br><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><br><div class="gmail_quote"><div dir="ltr">On Wed, 25 May 2016 at 18:01 Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@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">How many 4k textures? I had about 100. Had to drop them to 512 then speed was good.<div><br></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 11:43 AM, András Lehotay-Kéry <span dir="ltr"><<a href="mailto:lkandris@gmail.com" target="_blank">lkandris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Although mine is a native app, not webgl based, should be faster i think.</div><div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, 25 May 2016 at 17:39 András Lehotay-Kéry <<a href="mailto:lkandris@gmail.com" target="_blank">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">Well, mines can go up to 4096 x 4096. In fact the demo model has a texture with just this size.<div>Allright, so if i split up my huge textures and generate multiple UV maps from them of 512x512 size would it make any difference?</div></div><div dir="ltr"><div><br><div><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><br><div class="gmail_quote"><div dir="ltr">On Wed, 25 May 2016 at 17:35 Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">How large are your textures and are they powers of 2. I've seen big performance hits with large textures (1024x1024) in a webgl app.</p>
<div class="gmail_quote"></div><div class="gmail_quote">On May 25, 2016 11:19 AM, "András Lehotay-Kéry" <<a href="mailto:lkandris@gmail.com" target="_blank">lkandris@gmail.com</a>> wrote:<br type="attribution"></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey folks!<div>I <span style="line-height:1.5">mainly </span><span style="line-height:1.5">use VTK 7.0.0  for model display purposes </span><span style="line-height:1.5">on Android platform</span><span style="line-height:1.5">. I gave a try got the quite recently introduced vtkOBJImporter class to test the viewer behaviour for OBJ models with multiple textures and bumped into the following issues: </span></div><div><br></div><div>Scenario 1:</div><div><span style="line-height:1.5">If i use </span><span style="line-height:1.5">vtkOBJImporter for models with any number of textures, i get ENORMOUS framedrops</span></div><div>Scenario 2:</div><div> <span style="line-height:1.5">If i use </span><span style="line-height:1.5">vtkOBJReader for models with a single texture, i get the same effect as above</span></div><div>Scenario 3:</div><div><span style="line-height:1.5">If i use </span><span style="line-height:1.5">vtkOBJReader for the same models but without textures, i have no issues, the viewer is up to speed.</span></div><div><br></div><div><span style="line-height:1.5">I recorded two short videos for demostration:</span></div><div><div>Scenario 2:<br></div><div><a href="https://goo.gl/93ag9e" target="_blank">https://goo.gl/93ag9e</a></div></div><div>Scenario 3:<br></div><div><div><a href="https://goo.gl/cn0blJ" target="_blank">https://goo.gl/cn0blJ</a></div><div>Test model:</div><div><a href="https://sketchfab.com/models/a6f343cc661644319f88f1bdd20fe6de" target="_blank">https://sketchfab.com/models/a6f343cc661644319f88f1bdd20fe6de</a><br></div><div><br></div><div>Mind you, the test model is quite large, but i get the same effect on models weigh less than 1MB.</div><div><br></div><div>Build setup:</div><div>Debian 8.3</div><div>Android NDK r10e</div><div>toolchain GCC 4.9</div><div>-O3 optimization</div><div>OpenGL ES 2.0 / 3.0 linkage (tried both, makes no difference here)</div><div><br></div><div>Test devices:</div><div>LG G4</div><div>Nexus 9</div><div>Galaxy S5</div><div><br></div><div>What could cause this effect? Different rendering mechanism for textured models?<span style="line-height:1.5"> </span></div><div>Thanks in advance!</div><div><br></div><div><br></div><div><br></div><div><div><div><div><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">----------------------------</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></div></div>
<br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div>
</blockquote></div></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br><div>Unpaid intern in BillsBasement at noware dot com<br></div>
</div></blockquote></div>