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
-------------------------------------------------------------
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
-------------------------------------------------------------