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