X3D V4 HTML Integration Requirements

From Web3D.org
Revision as of 12:14, 29 March 2017 by Walroy (Talk | contribs) (Summary of postings on this topic to the public mailing lists)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Boundary conditions

This is just for X3D running in a web browser and integrated with HTML. If there is X3D outside of this limitation, these requirements may or may not apply.


Notes

  1. Some of these requirements may overlap by varying amounts. It was easier to specify them this way then trying to make a complete and non-overlapping set. I'm not going to even claim that this is a complete set, but it is a beginning.

For those that want XHTML, then convert all references to HTML to XHTML and make the appropriate syntax changes. The differences between HTML and XHTML in the appearance of the elements and attributes is that XHTML is strict. This amounts to closing elements, elements and attributes are lower case, mandatory elements and attributes, different MIME type (text/html vs. application/xml or applications/xhtml+xml), and quoted attributes -- see https://www.w3schools.com/html/html_xhtml.asp for details. The WhatWG has a pretty good documentation page on the differences at https://wiki.whatwg.org/wiki/HTML_vs._XHTML.


Requirements

  1. Look "like" HTML
    1. Elements (nodes in X3D-speak) shall be case independent
    2. Attributes (fields in X3D-speak) shall be case independent
    3. X3D nodes shall not have name conflicts with any HTML-defined elements
    4. All X3D nodes shall support all HTML Global Attributes (https://www.w3schools.com/tags/ref_standardattributes.asp)
    5. All X3D fields with the same name as HTML attributes shall behave as the HTML element

TBD: Not all style attributes apply to X3D nodes & fields

  1. Function "like" HTML
    1. All nodes shall be fully integrated with the DOM [This may need to change if certain nodes need to remain hidden from the DOM. For example, the manner which X3DOM implements Inline.]
    2. The scene graph does not need to be DOM (or a portion of it).
    3. Changes to the DOM shall be reflected in the scene graph
    4. Changes to the scene graph shall be reflected in the DOM
    5. Events are handled as HTML events
    6. DOM is the external (i.e., from the web page) API to the scene graph
  1. X3D shall support the evolving web standards for flat-3D (WebGL), VR WebVR) and AR
  1. Existing features & functionality
    1. Perform the following tasks with the requirements that is be conflict with the above
      1. Conduct a review of all existing features (nodes) to determine if any should be deprecated in V4
      2. Conduct a review of all existing functionality (run-time) to determine if any should be deprecated or changed in V4
    2. Include all features and functionality that passes the above reviews
  1. Additional features shall be added
    1. Deformable-skin joint based animation
    2. Support for multiple geometry formats, including OBJ, glTF
    3. Increased Material support with a standard library of pre-defined shaders
    4. Mechanism to navigate a scene without a pointing device
    5. Mechanism to touch or select objects without a pointing device
    6. Review other 3D/VR display technologies (XML3D, A-Frame, GLAM, etc.) to determine if there are features that should be included