[vtkusers] Huge framedrops on Android when opening textured OBJs

András Lehotay-Kéry lkandris at gmail.com
Wed May 25 11:19:14 EDT 2016


Hey folks!
I mainly use VTK 7.0.0  for model display purposes on Android platform. 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:

Scenario 1:
If i use vtkOBJImporter for models with any number of textures, i get
ENORMOUS framedrops
Scenario 2:
 If i use vtkOBJReader for models with a single texture, i get the same
effect as above
Scenario 3:
If i use vtkOBJReader for the same models but without textures, i have no
issues, the viewer is up to speed.

I recorded two short videos for demostration:
Scenario 2:
https://goo.gl/93ag9e
Scenario 3:
https://goo.gl/cn0blJ
Test model:
https://sketchfab.com/models/a6f343cc661644319f88f1bdd20fe6de

Mind you, the test model is quite large, but i get the same effect on
models weigh less than 1MB.

Build setup:
Debian 8.3
Android NDK r10e
toolchain GCC 4.9
-O3 optimization
OpenGL ES 2.0 / 3.0 linkage (tried both, makes no difference here)

Test devices:
LG G4
Nexus 9
Galaxy S5

What could cause this effect? Different rendering mechanism for textured
models?
Thanks in advance!




----------------------------

[image: SmartMobileVision] <http://www.smartmobilevision.com/>


*András Lehotay-Kéry*Software Developer (Mobile / Computer Vision)
lka at smartmobilevision.com

SmartMobileVision
Szent Gellért tér 3, 1114 Budapest, Hungary
www.smartmobilevision.com

[image: Google +]
<https://plus.google.com/+Andr%C3%A1sLehotayK%C3%A9ry> [image:
LinkedIn]  <https://www.linkedin.com/in/andras-lehotay-kery-8abb899b>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160525/cc50f433/attachment.html>


More information about the vtkusers mailing list