<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>The Analysis of File Format Conversion Tools for Storing 3D Objects for the iOS Platform</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Lviv Polytechnic National University</institution>
          ,
          <addr-line>12 Bandera street, Lviv, Ukraine, 79013</addr-line>
        </aff>
      </contrib-group>
      <fpage>0000</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>The development of augmented reality technologies has not bypassed mobile operating systems, in particular the iOS operating system. In turn, the three-dimensional file industry has a large number of ready-made solutions presented in various formats. However, not all of them are supported by mobile operating systems iOS, such as Obj or Fbx files. That's why the question of converting them to the supported by the operating system iOS formats, USDZ and Collada, is quite relevant. Accordingly, the paper analyzes the means of converting file formats for storing three-dimensional objects under the iOS platform. The results of an experimental comparison of the quality of converted threedimensional files make it possible to determine the optimal means for converting with minimizing deformations and losses. This, in turn, can help developers in choosing three-dimensional formats suitable for their tasks while working on an iOS product.</p>
      </abstract>
      <kwd-group>
        <kwd>Augmented reality</kwd>
        <kwd>USDZ</kwd>
        <kwd>USDC USD</kwd>
        <kwd>Converting</kwd>
        <kwd>Fbx</kwd>
        <kwd>Collada</kwd>
        <kwd>Obj</kwd>
        <kwd>Mobile Development</kwd>
        <kwd>iOS</kwd>
        <kwd>AR</kwd>
        <kwd>Three-dimensional files</kwd>
        <kwd>3d Files</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Approach</title>
      <p>An empirical research method was used to achieve the goal. To find out the tools for
file format conversion, three-dimensional models into supported by iOS, theoretical
analysis of software for working with three-dimensional graphics was performed. The
quality of conversion of each selected format was analyzed using experimental
methods.
3</p>
    </sec>
    <sec id="sec-2">
      <title>Presenting main material</title>
      <p>
        Since there are over a hundred different file formats for displaying 3D models, only the
most common ones that were not supported by the iOS mobile platform were selected.
That is, those file formats for which there are already many ready-made 3D models,
however, which cannot be displayed on iOS using built-in methods. According to
researches spent in this article [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] these are formats Fbx and Obj [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ].
      </p>
      <p>Fbx - is a proprietary format that is owned by Autodesk. It is widely applied in the
film industry and also in the industry of games, because of ability to keep animations
and support of a wide set of programs for work with a 3D-graphics developed by
company Autodesk.</p>
      <p>Obj - an open format for storage of geometry of objects. This format can use textures
or colours to display models. This format has received its popularity because of
simplicity of creation and storage of models and also because of its openness.</p>
      <p>
        The formats for displaying 3D files that are supported at the iOS level are Collada
[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and USDZ [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Both formats support similar sets of technologies. However, USDZ
is a relatively new format, which was announced by Apple in 2018, due to which it is
able to optimize the construction of three-dimensional model.
      </p>
      <p>
        Among the programs that are used to convert 3D models were those that allow to
convert Obj or Fbx formats to USDZ and Collada formats. Namely:
 Reality Converter - Apple's application for converting Object models to USDZ
format [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
 FbxConverterUI - an application from Autodesk to convert Obj and Collada formats
to the Fbx format and vice versa [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
 Blender [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] - a software package for creating 3D graphics that also allows
converting Fbx, Collada, Obj and USDC files to each other [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ].
      </p>
      <p>It should be noted that all the above programs are free to download from official
resources.</p>
      <p>
        To perform analysis there was developed a test mobile application [
        <xref ref-type="bibr" rid="ref14 ref15 ref16">14 – 16</xref>
        ] for the
iOS operating system in the Swift programming language [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] that allows to display
three-dimensional objects, via XCode IDE [19]. Also, for more detailed analysis, this
application makes it possible:
 To hide the textures of the models leaving only its frame.
 Play the animation if it is present in the model.
 Change the model position and size.
      </p>
      <p>For testing were downloaded several 3D models from free3d.com resource [18]. The
received results can be useful in the development of augmented reality systems [20, 21]
health applications [22, 23], intelligent cities and smart home applications [24 – 26], etc.</p>
      <sec id="sec-2-1">
        <title>Obj file converting experiment</title>
        <p>At first the models of Obj type were considered. As "objects of this model do not
contain animation". [5, pp. 326-327] so only the image quality of static files after
conversion was evaluated. When converting to the USDZ format with the Reality Converter
application, no collisions occurred and both models were displayed correctly, as can be
seen in Fig. 1. It should be noted that this converter does not use a .mtl file that stores
information about the color of objects, but allows overlaying textures.
Blender also allows you to convert files to a USD-like format, namely USDC. The
USDZ format is an archive that consists of one USDC file and a set of textures. The
result of the conversion with Blender is a USDC file that describes the geometry and
colors of the model, but does not have the texture representation, that can be seen in
Fig. 2 of the sewing machine model.</p>
        <p>
          Also, during the experiment, it was found that the final USDC file of Blender takes
more memory than the USDC file inside the USDZ file, which is the result of the
Reality Converter conversion.
When converting Obj files to Collada files using Blender, no collisions were detected,
as can be seen in Fig. 3, but the final size of the files has increased even more than the
previous conversions, as can be seen in Table 1. According to the research in the article
[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], this is due to the different way the data about the three-dimensional model is stored
in formats.
        </p>
        <p>File name
Iron Man
Swing
Machine</p>
        <p>As you can see from the table and figures above, there is no best solution for
converting Obj files to iOS compatible formats at the moment. Because you have to choose
between converting the colors or textures of a model, and considering the size of the
final model. However, USDZ is a new format that Apple is actively developing and
improving, as evidenced by the availability of a new Reality Converter (released by
Apple in January 2020) and increasing support for the format by third-party software
(such as Blender), so it is possible that existing shortcomings will be corrected soon.</p>
      </sec>
      <sec id="sec-2-2">
        <title>Fbx file converting experiment</title>
        <p>The Fbx format was discussed next. During the experiment, three different models were
selected, two of which contained animation. To convert to USD-like formats, the
Reality Converter and Blender programs mentioned earlier were used. During the
experiment it was found that the latter (Blender) did not convert animation in the models and
as a result USDС files did not contain animation.</p>
        <p>It should be noted that some files were displayed either after conversion in Blender
or Reality Converter. In other words, only one of the listed programs was able to
correctly convert the model. This is due to the unique structure of each specific
threedimensional model. Since Autodesk updates its Fbx plugins every year, such conflicts
may occur due to different versions of these plugins during model development by the
designer and conversion during the experiment. The results of the models converted
from Fbx to USD-like files are shown in Fig. 4.
─ The first model with animation - was correctly converted by both programs. As it
was said above, the animation model that was converted by Blender did not contain
any animation.
─ The second model was correctly converted by Reality Converter.
─ The third model was converted only by Blender (without animation).</p>
        <p>Fig. 4. Three-dimensional models converted from Fbx format to USDC (Z) format
Blender and FbxConverterUI programs were used to convert to Collada format.
Unlike the USD conversion result, the result of converting by Blender to the Collada
format contains animation. However, during the experiment, there were some collisions
after formatting the model as shown in the first model in Fig. 5.</p>
        <p>
          As for the FbxConverterUI program, it often crashed. It is related to the outdated
version of the given program (last release 2013) and as consequence absence of support
of models on the basis of new versions of Fbx though it and official software from
company Autodesk. Also, the convertible models of this program deformed the distance
of the models from the center of the camera, so it was difficult to manipulate them. The
conversion results are shown in Fig. 6. The model of the dragon could not be converted
to the Collada format by any of the programs.
As with the conversion of Obj files, Reality Converter converts models with the
highest compression. This is primarily due to the USZD format the program converts
to. As researched in the article [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], this format structures data in the most optimal way.
As for the conversion to the Collada format, as can be seen from Table 2, it is rather
difficult to identify a favorite, but during the experiment Blender has never completed
the work accidentally which cannot be said about FbxConverterUI.
        </p>
        <p>Based on the experimental results, it can be concluded that the optimal format for
converting from Fbx to one that is compatible with iOS today is the format USDZ. This
can be done with Reality Converter or Blender. However, during the experiment, it was
found that the last one (Blender) does not allow saving information about the animation
of the model being converted. Therefore, it is appropriate to use it in cases where the
models do not contain animations or they can be ignored. This program should also be
used when it is necessary to convert 3D models to the Collada format, because the
alternative program FbxConverterUI may cause conversion failures.
4</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>Solutions that use 3D technologies to facilitate learning or to improve the quality of
user interaction with the interface are appearing every day. Since smartphones are often
the ones actively involved in the implementation of three-dimensional technologies,
this paper examines the best solutions for porting three-dimensional models to the
mobile OS iOS. Given that in the field of 3D graphics there are many available solutions
that are not supported at the level of iOS, the actual means of converting them into
formats supported by this OS. Common file formats for storing 3D objects, such as Obj
and Fbx, have been chosen for this purpose. In order to analyze existing solutions, their
problems and disadvantages for conversion of selected 3D formats into supported by
iOS (USDC (Z) and Collada), several free programs were selected. These are: Reality
Converter, Blender and FbxConverterUI. Using them, an experiment to convert formats
on different models was conducted. During this experiment, a number of disadvantages
and advantages of each program were revealed. According to the results, it was
concluded that Reality Converter proved to be the most optimal program, as it allowed
saving both animation and texture of models. However, it is also worth noting Blender
for its ability to convert all types of comparable formats, although not always with the
preservation of animation or textures of the model.</p>
      <p>The use of 3D graphics in people's lives is only gaining popularity, so the question
of optimizing ready-made 3D solutions for integration into new operating systems will
be relevant for a long time. The results of the experiments may be useful for developers
of mobile applications in which it is necessary to use Obj or Fbx formats. Prospects for
research in the field of mobile three-dimensional graphics are aimed at improving the
interaction between users and objects, as well as on the quality of their reflection.
18. Three-Dimensional Examples Webpage, https://free3d.com, last accessed 2019/10/11.
19. XCode Program Environment Homepage with Documentation,
https://developer.apple.com/xcode/, last accessed 2019/10/11.
20. Paiva P. V. F., Machado L. S., de Oliveira J. C.: Simulation and performance evaluation of a
distributed haptic virtual environment supported by the cybermed framework. Virtual Reality
(SVR), XIII Symposium on IEEE, pp. 188 - 196. IEEE, Uberlandia, Basil (2011).
21. Velev D., Zlateva P., Steshina L., Petukhov I.: Challenges of using drones and
virtual/augmented reality for disaster risk managemen. The International Archives of the
Photogrammetry, Remote Sensing and Spatial Information Sciences, Volume XLII-3/W8, pp. 437–440.
Gi4DM 2019– GeoInformation for Disaster Management, 3–6 September, Prague, Czech
Republic (2019).
22. Berezsky O., Verbovyy S., Pitsun O.: Hybrid Intelligent information techology for biomedical
image processing. Proceedings of the IEEE International Conference of Computer Science
and Information Technologies, CSIT’2018, 420–423 (2018).
23. Berezsky, O., Pitsun, O., Verbovyy, S., Datsko, T., Bodnar, A.: Computer diagnostic tools
based on biomedical image analysis. 14th International Conference The Experience of
Designing and Application of CAD Systems in Microelectronics, CADSM 2017, pp. 388 – 391
(2017).
24. Park Y., Rue S.: Analysis on Smart City service technology with IoT. Korea institute of
information Technology Review 13(2), 31–37 (2015).
25. Boreiko O. Y., Teslyuk V. M: Developing a controller for registering passenger flow of public
transport for the "smart" city system. Eastern-European Journal of Enterprise Technologies
Vol. 6, 3(84), 40–46 (2016).
26. Lytvyn, V., Vysotska, V., Mykhailyshyn, V., Peleshchak, I., Peleshchak, R., Kohut, I.:
Intelligent system of a smart house. In: 3rd International Conference on Advanced Information
and Communications Technologies, AICT, 282–287 (2019).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Dávidekováa</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mjartana</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Greguša</surname>
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Utilization of Virtual Reality in Education of Employees in Slovakia</article-title>
          . In: Procedia Computer Science 113, pp.
          <fpage>253</fpage>
          -
          <lpage>260</lpage>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Tsmots</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Teslyuk</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Khavalko</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lukashchuk</surname>
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poniszewska-Maranda</surname>
            <given-names>A</given-names>
          </string-name>
          .:
          <article-title>Use of Augmented Reality Technology to Develop an Application for Smart Factory Workers</article-title>
          .
          <source>In: Proceedings of the 1st International Workshop on Digital Content &amp; Smart Multimedia (DCSMart</source>
          <year>2019</year>
          ).
          <source>CEUR Workshop</source>
          Proceedings vol.
          <volume>2533</volume>
          , pp.
          <fpage>23</fpage>
          -
          <lpage>34</lpage>
          . Ukraine,
          <string-name>
            <surname>Lviv</surname>
          </string-name>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Schuemie</surname>
            ,
            <given-names>Martijn J.</given-names>
          </string-name>
          , Peter van de Straaten, Merel Krijn,
          <string-name>
            <surname>Charles A.P.G.</surname>
          </string-name>
          <article-title>van der Mast: Research on Presence in Virtual Reality: A Survey. Cyberpsychology and behavior: the impact of the Internet, multimedia and virtual reality on behavior and society 4</article-title>
          , pp.
          <fpage>183</fpage>
          -
          <lpage>201</lpage>
          (
          <year>2001</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Jaworski</surname>
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Farmaha</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marikutsa</surname>
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Farmaha</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savchyn</surname>
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Implementation features of wounds visual comparison subsystem</article-title>
          .
          <source>XIV-th International Conference on Perspective Technologies and Methods in MEMS Design (MEMSTECH)</source>
          , pp.
          <fpage>114</fpage>
          -
          <lpage>117</lpage>
          . Ukraine,
          <string-name>
            <surname>Lviv</surname>
          </string-name>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Ostrovka</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Teslyuk</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vesely</surname>
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Prots</surname>
          </string-name>
          <article-title>'ko I.: The Analysis and Comparsion of File Formats for Constructions of iOS Three-dimensional Objects for Augmented Reality Systems</article-title>
          .
          <source>CEUR Workshop</source>
          Proceedings vol.
          <volume>2533</volume>
          , pp.
          <fpage>325</fpage>
          -
          <lpage>334</lpage>
          . Ukraine,
          <string-name>
            <surname>Lviv</surname>
          </string-name>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Obj</given-names>
            <surname>File Documentation Homepage</surname>
          </string-name>
          , https://www.fileformat.info/format/wavefrontobj/egff.htm,
          <source>last accessed</source>
          <year>2019</year>
          /09/15.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Fbx</given-names>
            <surname>File Documentation Homepage</surname>
          </string-name>
          , https://www.autodesk.com/products/Fbx/overview,last accessed
          <year>2019</year>
          /09/17.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Collada</given-names>
            <surname>File Documentation Homepage</surname>
          </string-name>
          , https://www.khronos.org/collada/,
          <source>last accessed</source>
          <year>2019</year>
          /09/18.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>USDZ</given-names>
            <surname>File Format Explanation Topic</surname>
          </string-name>
          , https://medium.com/techinpieces/all
          <article-title>-about-applesnew-usdz-file-format-simplified-12dff29f3fc0, last accessed</article-title>
          <year>2019</year>
          /09/21.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Reality Converter Homepage, https://developer.apple.com/news/?id=01132020a,
          <source>last accessed</source>
          <year>2020</year>
          /05/14.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. FbxConverterUI Homapage, https://www.autodesk.
          <article-title>com/developer-network/platform-technologies/fbx-converter-archives</article-title>
          ,
          <source>last accessed</source>
          <year>2020</year>
          /05/14.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. Blender Homepage, https://www.blender.org,
          <source>last accessed</source>
          <year>2020</year>
          /05/14.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. USDC File Format Specification Homepage, https://graphics.pixar.com/usd/docs/Usdz-FileFormat-Specification.html,
          <source>last accessed</source>
          <year>2020</year>
          /05/14.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Batyuk</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Voityshyn</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Verhun</surname>
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Software Architecture Design of the Real-Time Processes Monitoring Platform</article-title>
          .
          <source>In: Proceeding of the Second International Conference on Data Stream Mining &amp; Processing (DSMP)</source>
          , pp.
          <fpage>98</fpage>
          -
          <lpage>10</lpage>
          . Ukraine,
          <string-name>
            <surname>Lviv</surname>
          </string-name>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Sydor</surname>
            <given-names>A. R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Teslyuk</surname>
            <given-names>V. M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Denysyuk</surname>
            <given-names>P. Y.</given-names>
          </string-name>
          :
          <article-title>Recurrent expressions for reliability indicators of compound electropower systems</article-title>
          .
          <source>Technical Electrodynamics No. 4.</source>
          ,
          <fpage>47</fpage>
          -
          <lpage>49</lpage>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Seniv</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yakovyna</surname>
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Symets</surname>
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Software for visualization of reliability block diagram and automated formulation of operability conditions of technical systems</article-title>
          .
          <source>In: Proceedings of the ХІV-th Intern. Conf., MEMSTECH'2018</source>
          , pp.
          <fpage>191</fpage>
          -
          <lpage>195</lpage>
          . Ukraine,
          <string-name>
            <surname>Polyana</surname>
          </string-name>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17. Swift Language Homepage, https://www.apple.com/ru/swift/,
          <source>last accessed</source>
          <year>2020</year>
          /05/14.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>