Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-3324

FIWARE.Request.Tech.WebUI.XML3D.CloudUse

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hi,

      I am working with the XML3D GE and I would like to be able to access and
      store 3D models from/to a cloud hosting system.

      Can someone provide to me a REAL example of how can I use the Fiware Cloud
      from JavaScript??

      Best regards,
      Sergio.

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Sergio Casas <scasas@robotica.uv.es>]

        Activity

        Hide
        tospie Torsten Spieldenner added a comment -

        Hello,

        XML3D models are stored in XML files or JSON files that are referenced
        by the node you are using to represent your model in your scene.

        If your XML3D model is readily defined asset, you can instantiate it
        using a <model> tag:

        <model src="/path/to/asset/asset.xml#assetID">

        If the model contains mesh data (vertices, normals, etc ...), you can
        add it to your scene as a mesh:

        <mesh src="/path/to/mesh/mesh_data.json">

        Usually, your model would be an asset as in the first case. Please refer
        to the Open Specification, or to the guides in the elearning platform
        for a more detailed description and usage of the different nodes

        This referenced data, asset or mesh data, needs to be located on an HTTP
        server, and is requested by XML3D via AJAX requests.

        When you deploy XML3D via FILAB-Recipe or preconfigured Instance in
        FILAB, then there is already an Apache server running that hosts the
        current script file as well as a set of examples. You can use this
        server to store and host your models. The GE does currently not offer a
        graphic user interface to upload models directly in the browser, but
        this feature is considered to be added to the GE instance hosted in the lab.

        Currently, a way to get asset data to the server, would be to upload the
        assets to the server manually using SSH , or scp respectively. The root
        path of the running Apache server is /var/www/html .

        Adding a reference to an XML3D model in JavaScript can simply be done by
        creating the <model> node and setting the src of the model
        programmatically before adding it as child of the <xml3d> node, e.g.:

        var m = XML3D.createElement("model");
        m.src = "/reference/to/asset.xml";
        $("xml3d").append(m); // or appending it to some node within the XML3D
        scene graph

        Best,
        Torsten


        Torsten Spieldenner, M.Sc.

        Tel.: +49 6 81 / 8 57 75 - 77 48
        Fax.: +49 6 81 / 8 57 75 - 22 35

        Internet: http://www.dfki.de/web/forschung/asr/

        -------------------------------------------------------------
        Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
        Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany

        Geschaeftsfuehrung:
        Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
        Dr. Walter Olthoff

        Vorsitzender des Aufsichtsrats:
        Prof. Dr. h.c. Hans A. Aukes

        Amtsgericht Kaiserslautern, HRB 2313
        -------------------------------------------------------------

        Show
        tospie Torsten Spieldenner added a comment - Hello, XML3D models are stored in XML files or JSON files that are referenced by the node you are using to represent your model in your scene. If your XML3D model is readily defined asset, you can instantiate it using a <model> tag: <model src="/path/to/asset/asset.xml#assetID"> If the model contains mesh data (vertices, normals, etc ...), you can add it to your scene as a mesh: <mesh src="/path/to/mesh/mesh_data.json"> Usually, your model would be an asset as in the first case. Please refer to the Open Specification, or to the guides in the elearning platform for a more detailed description and usage of the different nodes This referenced data, asset or mesh data, needs to be located on an HTTP server, and is requested by XML3D via AJAX requests. When you deploy XML3D via FILAB-Recipe or preconfigured Instance in FILAB, then there is already an Apache server running that hosts the current script file as well as a set of examples. You can use this server to store and host your models. The GE does currently not offer a graphic user interface to upload models directly in the browser, but this feature is considered to be added to the GE instance hosted in the lab. Currently, a way to get asset data to the server, would be to upload the assets to the server manually using SSH , or scp respectively. The root path of the running Apache server is /var/www/html . Adding a reference to an XML3D model in JavaScript can simply be done by creating the <model> node and setting the src of the model programmatically before adding it as child of the <xml3d> node, e.g.: var m = XML3D.createElement("model"); m.src = "/reference/to/asset.xml"; $("xml3d").append(m); // or appending it to some node within the XML3D scene graph Best, Torsten – Torsten Spieldenner, M.Sc. Tel.: +49 6 81 / 8 57 75 - 77 48 Fax.: +49 6 81 / 8 57 75 - 22 35 Internet: http://www.dfki.de/web/forschung/asr/ ------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 -------------------------------------------------------------
        Hide
        fw.ext.user FW External User added a comment -

        Hi Torsten,

        thanks for your reply.

        I know the mechanisms to include assets (XML or JSON) into an XML3D scene.
        I also have already JavaScript code to load local models with XML3D.
        So I am not interested in the XML3D details right now.
        My question has a different focus:

        What I would like to know is if there are mechanisms to store or load
        objects to/from a Fiware Cloud (using the Object Storage GE I guess...)
        using JavaScript.

        What I have in mind is:

        • I call a JS function that sends/retrieves objects to/from the cloud. Does
          this JS code exist?? Is it part of the Object Storage GE?
        • Then, I can hopefully refer this cloud object with an URL and use this
          URL in my <model> tag. Would I be able to do that?

        Thanks in advance.

        2015-06-16 11:45 GMT+02:00 Torsten Spieldenner <torsten.spieldenner@dfki.de>

        Show
        fw.ext.user FW External User added a comment - Hi Torsten, thanks for your reply. I know the mechanisms to include assets (XML or JSON) into an XML3D scene. I also have already JavaScript code to load local models with XML3D. So I am not interested in the XML3D details right now. My question has a different focus: What I would like to know is if there are mechanisms to store or load objects to/from a Fiware Cloud (using the Object Storage GE I guess...) using JavaScript. What I have in mind is: I call a JS function that sends/retrieves objects to/from the cloud. Does this JS code exist?? Is it part of the Object Storage GE? Then, I can hopefully refer this cloud object with an URL and use this URL in my <model> tag. Would I be able to do that? Thanks in advance. 2015-06-16 11:45 GMT+02:00 Torsten Spieldenner <torsten.spieldenner@dfki.de>
        Hide
        tospie Torsten Spieldenner added a comment -

        Hi,

        sorry, seems I was a bit too much focused on 3D-UI GE when thinking
        about possible upload mechanisms

        Unfortunately, I cannot help much concerning interfaces to other GE. You
        might want to try contacting the GE owners of the respective GE.

        From 3D-UI-XML3D point of view, the only thing that the storage has to
        offer is to query content via HTTP and by specifying a URI to the target
        resource, exactly as you also require. As the GE usually provide access
        via REST (and as far as I understood from Object Storage, this one as
        well), this should basically not be a problem. But the owners of the
        respective GE, e.g. Object Storage, will possibly be able to help with
        more qualified support there.

        As a solution specific for 3D models, we are currently working on a
        release of an Asset Storage service to be deployed within FIWARE
        applications. This service matches exactly your requirements, namely
        uploading 3D models and requesting them via URI. The software is still
        facing the process to be released and we cannot fix a certain date when
        it will be available, but it will be a matter of possibly not more than
        a few weeks.

        Best Regards,
        Torsten


        Torsten Spieldenner, M.Sc.

        Tel.: +49 6 81 / 8 57 75 - 77 48
        Fax.: +49 6 81 / 8 57 75 - 22 35

        Internet: http://www.dfki.de/web/forschung/asr/

        -------------------------------------------------------------
        Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
        Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany

        Geschaeftsfuehrung:
        Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
        Dr. Walter Olthoff

        Vorsitzender des Aufsichtsrats:
        Prof. Dr. h.c. Hans A. Aukes

        Amtsgericht Kaiserslautern, HRB 2313
        -------------------------------------------------------------

        Show
        tospie Torsten Spieldenner added a comment - Hi, sorry, seems I was a bit too much focused on 3D-UI GE when thinking about possible upload mechanisms Unfortunately, I cannot help much concerning interfaces to other GE. You might want to try contacting the GE owners of the respective GE. From 3D-UI-XML3D point of view, the only thing that the storage has to offer is to query content via HTTP and by specifying a URI to the target resource, exactly as you also require. As the GE usually provide access via REST (and as far as I understood from Object Storage, this one as well), this should basically not be a problem. But the owners of the respective GE, e.g. Object Storage, will possibly be able to help with more qualified support there. As a solution specific for 3D models, we are currently working on a release of an Asset Storage service to be deployed within FIWARE applications. This service matches exactly your requirements, namely uploading 3D models and requesting them via URI. The software is still facing the process to be released and we cannot fix a certain date when it will be available, but it will be a matter of possibly not more than a few weeks. Best Regards, Torsten – Torsten Spieldenner, M.Sc. Tel.: +49 6 81 / 8 57 75 - 77 48 Fax.: +49 6 81 / 8 57 75 - 22 35 Internet: http://www.dfki.de/web/forschung/asr/ ------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 -------------------------------------------------------------
        Hide
        slusallek0 Philipp Slusallek added a comment -

        Hi,

        Sorry for the late reply.

        I am not sure I fully understand you question. XML3D is a client side
        technology that runs within the Web browser (after having been
        downloaded from a Web server, of course).

        You find a demo hat you can Try out, interactively Tweak the Web app
        code and share it with others, as well as deploy a version (Web server
        plus files in this case) to a FIWARE machine with your FIWARE account at
        http://lab.mediafi.org (a part of the FIWARE program) – use the 3D-Map
        Tiles Enabler.

        A direct link is http://lab.mediafi.org/discover-3dmaptiles.html

        Best,

        Philipp

        -------------------------------------------------------------------------
        Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH
        Trippstadter Strasse 122, D-67663 Kaiserslautern

        Geschäftsführung:
        Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
        Dr. Walter Olthoff
        Vorsitzender des Aufsichtsrats:
        Prof. Dr. h.c. Hans A. Aukes

        Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
        USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3
        ---------------------------------------------------------------------------

        _______________________________________________
        Fiware-tech-help mailing list
        Fiware-tech-help@lists.fi-ware.org
        https://lists.fi-ware.org/listinfo/fiware-tech-help

        Show
        slusallek0 Philipp Slusallek added a comment - Hi, Sorry for the late reply. I am not sure I fully understand you question. XML3D is a client side technology that runs within the Web browser (after having been downloaded from a Web server, of course). You find a demo hat you can Try out, interactively Tweak the Web app code and share it with others, as well as deploy a version (Web server plus files in this case) to a FIWARE machine with your FIWARE account at http://lab.mediafi.org (a part of the FIWARE program) – use the 3D-Map Tiles Enabler. A direct link is http://lab.mediafi.org/discover-3dmaptiles.html Best, Philipp – ------------------------------------------------------------------------- Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH Trippstadter Strasse 122, D-67663 Kaiserslautern Geschäftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3 --------------------------------------------------------------------------- _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-tech-help

          People

          • Assignee:
            tospie Torsten Spieldenner
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: