<?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: Export 3D shapes of conveyors and racks in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556941#M60318</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the “exportscenegraph” and “exportmedialist” application commands to export the data in a FlexSim scene to JSON that could be parsed and used by an external renderer.&lt;/P&gt;&lt;P&gt;Below is a screenshot showing those commands and custom JavaScript code that renders that data using WebGL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1661882284805.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512488iEFF88C1646654D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="1661882284805.png" alt="1661882284805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL start="1" type="1"&gt;&lt;LI&gt;Exporting the scene graph with a description of each object and mesh with a transformation matrix describing their position.&lt;/LI&gt;&lt;LI&gt;Exporting the data about those objects and meshes, such as vertex positions and texture coordinates.&lt;/LI&gt;&lt;LI&gt;The source code that reads and renders that data in JavaScript instead of FlexSim is available within the FlexSim installation directory.&lt;/LI&gt;&lt;LI&gt;That scene being rendered by the WebGL JavaScript instead of by FlexSim’s internal OpenGL renderer.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Similar rendering could be done using a different 3&lt;SUP&gt;rd&lt;/SUP&gt; party renderer or custom code that can take the exported scene and media json data, parse it, and render it however desired.&lt;/P&gt;&lt;P&gt;Attached is an example model (&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/57726-example-render-model-1fsm.jpg" target="_blank"&gt;example_render_model_1.fsm.jpg&lt;/A&gt;; rename file to remove ".jpg") with a script showing an example of using the exportscenegraph and exportmedialist application commands.&lt;/P&gt;&lt;P&gt;I added some comments to the script to help you get started understanding what’s in the data and how it is structured.&lt;/P&gt;&lt;P&gt;The model has example objects that render in different ways to show how that data is exported.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Source, Queue, Processor, and Sink are all normal objects with loaded shape files and simple colors.&lt;/LI&gt;&lt;LI&gt;Operator is a bone-animated shape with customized mesh data that removes its eyelashes.&lt;/LI&gt;&lt;LI&gt;There’s a green plane on the floor that’s custom drawn with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The conveyor uses instanced rendering to draw and animate its rollers with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The rack uses instanced rendering to draw and color its component parts with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The operator and rack textures have additional texturemaps, such as bump maps.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can reference the code in “FlexSim 2022\program\flexsimweb\fgl” for an example of using this data to render a scene with WebGL.&lt;/P&gt;&lt;P&gt;In the future, we may add other ways to export the 3D mesh data from a FlexSim model, but right now, this is what is currently available and what the WebGL Streaming feature of the FlexSim WebServer uses.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Aug 2022 18:00:07 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2022-08-30T18:00:07Z</dc:date>
    <item>
      <title>Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556938#M60315</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.6 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi all,&lt;/P&gt;
 &lt;P&gt;I am trying to create a 3D animation to reproduce the FlexSim's simulation results.&lt;/P&gt;
 &lt;P&gt;So I need the 3D shapes of conveyors and racks, but their appearance is not based on CAD data.&lt;/P&gt;
 &lt;P&gt;Is there any way to export 3D shapes of them?&lt;/P&gt;
 &lt;P&gt;Thank you.&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Aug 2022 09:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556938#M60315</guid>
      <dc:creator>yokota_t</dc:creator>
      <dc:date>2022-08-25T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556939#M60316</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Those objects are rendered by adding together multiple shapes and textures (only textures for racks I believe). So apart from the .ac shape files of the conveyor you can find under &lt;EM&gt;\modules\Conveyor\shapes&lt;/EM&gt; in the FlexSim directory, I don't think there is a way to export any shapes for them.&lt;/P&gt;&lt;P&gt;You are aware of FlexSim's video recorder functionality that allows you to capture videos of the model? (As a potential substitute for creating an animation from scratch)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1661422471692.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512481iC550A6AA87A07857/image-size/large?v=v2&amp;amp;px=999" role="button" title="1661422471692.png" alt="1661422471692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Aug 2022 10:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556939#M60316</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-08-25T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556940#M60317</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/29555/yokotat.html" nodeid="29555"&gt;@Yokota T&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Aug 2022 15:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556940#M60317</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2022-08-30T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556941#M60318</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the “exportscenegraph” and “exportmedialist” application commands to export the data in a FlexSim scene to JSON that could be parsed and used by an external renderer.&lt;/P&gt;&lt;P&gt;Below is a screenshot showing those commands and custom JavaScript code that renders that data using WebGL:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1661882284805.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1512488iEFF88C1646654D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="1661882284805.png" alt="1661882284805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL start="1" type="1"&gt;&lt;LI&gt;Exporting the scene graph with a description of each object and mesh with a transformation matrix describing their position.&lt;/LI&gt;&lt;LI&gt;Exporting the data about those objects and meshes, such as vertex positions and texture coordinates.&lt;/LI&gt;&lt;LI&gt;The source code that reads and renders that data in JavaScript instead of FlexSim is available within the FlexSim installation directory.&lt;/LI&gt;&lt;LI&gt;That scene being rendered by the WebGL JavaScript instead of by FlexSim’s internal OpenGL renderer.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Similar rendering could be done using a different 3&lt;SUP&gt;rd&lt;/SUP&gt; party renderer or custom code that can take the exported scene and media json data, parse it, and render it however desired.&lt;/P&gt;&lt;P&gt;Attached is an example model (&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/57726-example-render-model-1fsm.jpg" target="_blank"&gt;example_render_model_1.fsm.jpg&lt;/A&gt;; rename file to remove ".jpg") with a script showing an example of using the exportscenegraph and exportmedialist application commands.&lt;/P&gt;&lt;P&gt;I added some comments to the script to help you get started understanding what’s in the data and how it is structured.&lt;/P&gt;&lt;P&gt;The model has example objects that render in different ways to show how that data is exported.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Source, Queue, Processor, and Sink are all normal objects with loaded shape files and simple colors.&lt;/LI&gt;&lt;LI&gt;Operator is a bone-animated shape with customized mesh data that removes its eyelashes.&lt;/LI&gt;&lt;LI&gt;There’s a green plane on the floor that’s custom drawn with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The conveyor uses instanced rendering to draw and animate its rollers with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The rack uses instanced rendering to draw and color its component parts with FlexSim’s Mesh API.&lt;/LI&gt;&lt;LI&gt;The operator and rack textures have additional texturemaps, such as bump maps.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can reference the code in “FlexSim 2022\program\flexsimweb\fgl” for an example of using this data to render a scene with WebGL.&lt;/P&gt;&lt;P&gt;In the future, we may add other ways to export the 3D mesh data from a FlexSim model, but right now, this is what is currently available and what the WebGL Streaming feature of the FlexSim WebServer uses.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Aug 2022 18:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556941#M60318</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2022-08-30T18:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556942#M60319</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you for your response. Yes, I am aware of Video Recorder functionality. However, I need the animation as a 3D file such as FBX format for editing in external software.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Aug 2022 23:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556942#M60319</guid>
      <dc:creator>yokota_t</dc:creator>
      <dc:date>2022-08-30T23:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export 3D shapes of conveyors and racks</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556943#M60320</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you for your detailed answer.&lt;/P&gt;
 &lt;P&gt;I understand that FlexSim scene can be output in JSON format.&lt;/P&gt;
 &lt;P&gt;In the future, it would be great to be able to output scenes in FBX format.&lt;/P&gt;
 &lt;P&gt;Thank you again!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Aug 2022 00:00:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/export-3d-shapes-of-conveyors-and-racks/m-p/13556943#M60320</guid>
      <dc:creator>yokota_t</dc:creator>
      <dc:date>2022-08-31T00:00:59Z</dc:date>
    </item>
  </channel>
</rss>

