Skip to content

Commit

Permalink
Example asset path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 1, 2023
1 parent cc21c0b commit 6ebab70
Show file tree
Hide file tree
Showing 80 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion examples/annotations/annotations_createWithMouse.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/annotations/annotations_externalElements.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
4 changes: 2 additions & 2 deletions examples/bookmarking/loadViewpoint_MultipleModels.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "model1",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true,
excludeUnclassifiedObjects: false
});
Expand All @@ -113,7 +113,7 @@ <h3>Resources</h3>

const sceneModel2 = xktLoader.load({
id: "sceneModel2",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true,
excludeUnclassifiedObjects: false,
position: [30, 0, 0]
Expand Down
4 changes: 2 additions & 2 deletions examples/bookmarking/loadViewpoint_defaultInvisible.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true // Emphasise edges
});

const sceneModel2 = xktLoader.load({
id: "mysceneModel2",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/bookmarking/loadViewpoint_ortho.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true // Emphasise edges
});

Expand Down
4 changes: 2 additions & 2 deletions examples/bookmarking/saveViewpoint.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true // Emphasise edges
});

Expand All @@ -145,7 +145,7 @@ <h3>Resources</h3>
//------------------------------------------------------------------------------------------------------------------

const bitmap = new Bitmap(viewer.scene, {
src: "../../../assets/images/schependomlaanPlanView.png",
src: "../../assets/images/schependomlaanPlanView.png",
visible: true,
height: 24.0,
pos: [-15, 0, -10],
Expand Down
4 changes: 2 additions & 2 deletions examples/bookmarking/saveViewpoint_BitmapsAndLines.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3>Resources</h3>

const model = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true,
saoEnabled: true
});
Expand All @@ -154,7 +154,7 @@ <h3>Resources</h3>
//------------------------------------------------------------------------------------------------------------------

const bitmap = new Bitmap(viewer.scene, {
src: "../../../assets/images/schependomlaanPlanView.png",
src: "../../assets/images/schependomlaanPlanView.png",
visible: true,
height: 24.0,
pos: [-15, 0, -10],
Expand Down
4 changes: 2 additions & 2 deletions examples/bookmarking/saveViewpoint_MultipleModels.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "model1",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true,
excludeUnclassifiedObjects: false
});
Expand All @@ -119,7 +119,7 @@ <h3>Resources</h3>

const model2 = xktLoader.load({
id: "model2",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true,
excludeUnclassifiedObjects: false,
position: [30, 0, 0]
Expand Down
2 changes: 1 addition & 1 deletion examples/bookmarking/saveViewpoint_ortho.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>Resources</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
src: "../../assets/models/xkt/v8/ifc/Schependomlaan.ifc.xkt",
edges: true // Emphasise edges
});

Expand Down
6 changes: 3 additions & 3 deletions examples/cad/3DXML_Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ <h3>Resources</h3>

new ReflectionMap(viewer.scene, {
src: [
"../../../assets/textures/reflect/desertRoad/px.png",
"../../../assets/textures/reflect/desertRoad/nx.png",
"../../../assets/textures/reflect/desertRoad/py.png",
"../../assets/textures/reflect/desertRoad/px.png",
"../../assets/textures/reflect/desertRoad/nx.png",
"../../assets/textures/reflect/desertRoad/py.png",
"../../../assets/textures/reflect/desertRoad/ny.png",
"../../../assets/textures/reflect/desertRoad/pz.png",
"../../../assets/textures/reflect/desertRoad/nz.png"
Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/colorize.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/highlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/opacity.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt", // Creates a MetaObject instances in scene.metaScene.metaObjects
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt", // Creates a MetaObject instances in scene.metaScene.metaObjects
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/xray.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/emphasising/xray_transparentCanvas.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h3>Components Used</h3>

const sceneModel = xktLoader.load({
id: "myModel",
src: "../../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
src: "../../assets/models/xkt/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xkt",
edges: true
});

Expand Down
2 changes: 1 addition & 1 deletion examples/navigation/TreeViewPlugin_Containment.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<canvas id="myNavCubeCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/tree_view_icon.png"/>
<img class="info-icon" src="../../assets/images/tree_view_icon.png"/>
<h1>TreeViewPlugin</h1>
<h2>IFC Containment Hierarchy</h2>
<h3>Stats</h3>
Expand Down
2 changes: 1 addition & 1 deletion examples/navigation/TreeViewPlugin_Containment_3DXML.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<canvas id="myNavCubeCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/solidworks.png"/>
<img class="info-icon" src="../../assets/images/solidworks.png"/>
<h1>XML3DLoaderPlugin</h1>
<h2>Tree view with 3DXML model</h2>
<h3>Stats</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<canvas id="myNavCubeCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/tree_view_icon.png"/>
<img class="info-icon" src="../../assets/images/tree_view_icon.png"/>
<h1>TreeViewPlugin</h1>
<h2>IFC Containment Hierarchy</h2>
<p>In this example, we're loading two copies of the same BIM model, while showing the IFC containment hierarchy of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<canvas id="myCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Attaching metadata</h2>
<p>In this example, we're programmatically building a simple model using xeokit's SceneModel
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/FastNavPlugin_HolterTower.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_icon.png"/>
<h1>FastNavPlugin</h1>
<h2>Makes interaction smoother</h2>
<p>Whenever the camera moves, <a href="../../docs/class/src/plugins/FastNavPlugin/FastNavPlugin.js~FastNavPlugin.html"
Expand Down
2 changes: 1 addition & 1 deletion examples/scenegraph/buildPlaneGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/geometry_icon.png"/>
<img class="info-icon" src="../../assets/images/geometry_icon.png"/>
<h1>buildPlaneGeometry()</h1>
<h2>Builds plane-shaped triangle meshes</h2>
<p>In this example, we're creating a simple 3D scene that contains a plane-shaped geometry, generated using the
Expand Down
2 changes: 1 addition & 1 deletion examples/scenegraph/buildSphereGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3>Components Used</h3>
ambient: [0.9, 0.3, 0.9],
shininess: 30,
diffuseMap: new Texture(viewer.scene, {
src: "../../../assets/textures/diffuse/uvGrid2.jpg"
src: "../../assets/textures/diffuse/uvGrid2.jpg"
})
})
});
Expand Down
2 changes: 1 addition & 1 deletion examples/scenegraph/buildTorusGeometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h3>Components Used</h3>
ambient: [0.9, 0.3, 0.9],
shininess: 30,
diffuseMap: new Texture(viewer.scene, {
src: "../../../assets/textures/diffuse/uvGrid2.jpg"
src: "../../assets/textures/diffuse/uvGrid2.jpg"
})
})
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<canvas id="myCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Attaching metadata</h2>
<p>In this example, we're programmatically building a simple model using xeokit's SceneModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<canvas id="myCanvas"></canvas>
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>Loading federated models using SceneModel and MetaModel</h1>
<p>In this example, we're programmatically building a simple federated model using two SceneModels and
two MetaModels.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, no geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>SceneModel with various instanced geometries</h2>
<p>In this example, we're programmatically building a simple model using xeokit's SceneModel component, while
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Geometry instancing benchmark</h2>
<p>In this example, we're building a large model using xeokit's SceneModel component and geometry instancing.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Geometry batching benchmark</h2>
<p>In this example, we're building a large model using xeokit's SceneModel component and no geometry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, no geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Geometry batching and RTC coordinates</h2>
<p>In this example, we're programmatically building a simple model using xeokit's SceneModel component, while
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, no geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, no geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, geometry reuse, triangle primitives</h2>
<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Non-realistic rendering, geometry reuse, triangle primitives</h2>
<p>
Expand Down
2 changes: 1 addition & 1 deletion examples/scenemodel/dtx_lightingTest_viewDirLights.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/lighting_icon.png"/>
<img class="info-icon" src="../../assets/images/lighting_icon.png"/>
<h1>DirLight</h1>
<h2>Directional View-space lighting test for various scene representations</h2>
<p>In this example, we're programmatically building a scene, using both the scene graph and SceneModel scene
Expand Down
2 changes: 1 addition & 1 deletion examples/scenemodel/effects_dtx_batching_SAO.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<label for="info-button" class="info-button"><i class="far fa-3x fa-question-circle"></i></label>
<canvas id="myCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../../assets/images/performance_model_icon.png"/>
<img class="info-icon" src="../../assets/images/performance_model_icon.png"/>
<h1>SceneModel</h1>
<h2>Geometry reuse and SAO</h2>
<p>In this example, we're programmatically building a simple model using xeokit's SceneModel component, while
Expand Down
Loading

0 comments on commit 6ebab70

Please sign in to comment.