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

FIWARE.Request.Tech.WebUI.XML3D.Teapot_tutorial_example_does_not_show

    Details

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

      Description

      I am analyzing an error related to AR and XML3D enablers. Due to rendering problems I finally tried the Teapot tutorial example. https://github.com/xml3d/xml3d.js/wiki/The-Basics-of-XML3D . Nothing showed up. The browser is Firefox 38.0.5

      Console log:

      GET http://www.xml3d.org/xml3d/script/xml3d.js [HTTP/1.1 200 OK 804ms]
      GET http://www.xml3d.org/xml3d/script/tools/camera.js [HTTP/1.1 200 OK 163ms]
      The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. teapot.html
      "loadDocument@http://www.xml3d.org/xml3d/script/xml3d.js:6065:8
      [10]</Resource.getAdapterHandle@http://www.xml3d.org/xml3d/script/xml3d.js:6342:16
      [7]</NodeAdapter.prototype.getAdapterHandle@http://www.xml3d.org/xml3d/script/xml3d.js:5446:0
      [18]</DataAdapter.prototype.updateAdapterHandle@http://www.xml3d.org/xml3d/script/xml3d.js:7936:24
      [18]</DataAdapter.prototype.init@http://www.xml3d.org/xml3d/script/xml3d.js:7925:0
      [7]</NodeAdapterFactory.prototype.getAdapter@http://www.xml3d.org/xml3d/script/xml3d.js:5552:8
      [10]</Resource.getAdapter@http://www.xml3d.org/xml3d/script/xml3d.js:6364:0
      [46]</<.createRenderNode@http://www.xml3d.org/xml3d/script/xml3d.js:12471:26
      [46]</MeshRenderAdapter@http://www.xml3d.org/xml3d/script/xml3d.js:12465:4
      [42]</RenderAdapterFactory.prototype.createAdapter@http://www.xml3d.org/xml3d/script/xml3d.js:12177:0
      [7]</NodeAdapterFactory.prototype.getAdapter@http://www.xml3d.org/xml3d/script/xml3d.js:5549:14
      [7]</NodeAdapter.prototype.traverse@http://www.xml3d.org/xml3d/script/xml3d.js:5467:22
      [7]</NodeAdapter.prototype.traverse@http://www.xml3d.org/xml3d/script/xml3d.js:5468:0
      [112]</GLRenderer@http://www.xml3d.org/xml3d/script/xml3d.js:21607:4
      [58]</RendererFactory/this.createRenderer@http://www.xml3d.org/xml3d/script/xml3d.js:14312:23
      [53]</configure/<@http://www.xml3d.org/xml3d/script/xml3d.js:13394:23
      [53]</configure@http://www.xml3d.org/xml3d/script/xml3d.js:13392:4
      initXML3DElement@http://www.xml3d.org/xml3d/script/xml3d.js:9502:8
      onLoad@http://www.xml3d.org/xml3d/script/xml3d.js:9580:8" xml3d.js:25200:0
      
      "No view referenced. Trying to use first view." xml3d.js:25194:24
      mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create xml3d.js:10977:8
      TypeError: this.renderer is undefined xml3d.js:17924:4
      

      The "renderer is undefined" message count increases, when I move cursor above the possible rendering area.
      The browser is Firefox 38.0.5
      It seems I cannot inspect further without help from XML3D people.
      This is related to https://jira.fiware.org/browse/HELP-3152 .

        Activity

        Hide
        tospie Torsten Spieldenner added a comment -

        I have copy and pasted the code from the example wiki and it worked without problems.
        Can you provide me with the code of your test scene please?

        Show
        tospie Torsten Spieldenner added a comment - I have copy and pasted the code from the example wiki and it worked without problems. Can you provide me with the code of your test scene please?
        Hide
        ariokkon Ari Okkonen added a comment -

        I tried Chrome. I got better error messages. E.g.: "XMLHttpRequest cannot load file:///C:/Users/ariok_000/Documents/Projects/AR/Finalizing/xml3d_examples/teapot/resource/teapot.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.loadDocument @ xml3d.js:7661". It seems that XML3D does not work on local files. Perhaps it should be documented in BIG RED BLINKING characters in the first page of everything related to XML3D.

        Show
        ariokkon Ari Okkonen added a comment - I tried Chrome. I got better error messages. E.g.: "XMLHttpRequest cannot load file:///C:/Users/ariok_000/Documents/Projects/AR/Finalizing/xml3d_examples/teapot/resource/teapot.json . Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.loadDocument @ xml3d.js:7661". It seems that XML3D does not work on local files. Perhaps it should be documented in BIG RED BLINKING characters in the first page of everything related to XML3D.
        Hide
        tospie Torsten Spieldenner added a comment -

        Seems my last comment I have sent by email got lost ...

        Indeed, an XML3D scene needs to be deployed on a web server and can not be run from the local filesystem, as soon as it uses external references to resource files. This fact is included in the FIWARE User & Programmer's Guide, but, as you pointed out, missing in the Quickstart-Guide Wiki.

        I am going to report this issue to the XML3D guys. Please let me know if the example now runs correctly.

        Show
        tospie Torsten Spieldenner added a comment - Seems my last comment I have sent by email got lost ... Indeed, an XML3D scene needs to be deployed on a web server and can not be run from the local filesystem, as soon as it uses external references to resource files. This fact is included in the FIWARE User & Programmer's Guide, but, as you pointed out, missing in the Quickstart-Guide Wiki. I am going to report this issue to the XML3D guys. Please let me know if the example now runs correctly.
        Hide
        ariokkon Ari Okkonen added a comment -

        Putting the teapot.html and resource/teapot.json under Wamp local server helped. Works now. Only thing remaining is highlighting the fact that it does not run from local file without server.

        Show
        ariokkon Ari Okkonen added a comment - Putting the teapot.html and resource/teapot.json under Wamp local server helped. Works now. Only thing remaining is highlighting the fact that it does not run from local file without server.

          People

          • Assignee:
            tospie Torsten Spieldenner
            Reporter:
            ariokkon Ari Okkonen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: