Skip to content

Commit

Permalink
Example tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 27, 2023
1 parent 5c8cd54 commit acaa2e6
Show file tree
Hide file tree
Showing 61 changed files with 345 additions and 108 deletions.
4 changes: 2 additions & 2 deletions examples/buildings/glTF_Duplex_transform.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>Components used</h3>
target="_other">TreeViewPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down Expand Up @@ -72,7 +72,7 @@ <h3>Resources</h3>
// Create a xeokit loader plugin, load a model, fit to view
//----------------------------------------------------------------------------------------------------------------------

const glTFLoader = new GLTFLoaderPlugin(viewer);
const glTFLoader = new GLTFLoaderPlugin(viewer, {});

var t0 = performance.now();

Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glTF_Schependomlaan.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Components used</h3>
target="_other">GLTFLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="https://github.com/openBIMstandards/DataSetSchependomlaan"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glTF_VianneyHouse.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Components used</h3>
target="_other">GLTFLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="https://sketchfab.com/bimcc"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glTF_WestRiverSideHospital.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Components used</h3>
target="_other">GLTFLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/305" target="_other">Model source</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glTF_embedded_MAP.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h3>Components used</h3>
target="_other">GLTFLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>Model center is [1842022, 10, -5173301]</li>
<li>Model provided by <a href="https://bimdata.io" target="_other">BIMData.io</a></li>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glb_BoxTextured.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>Components used</h3>
target="_other">FastNavPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="https://sketchfab.com/bimcc"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glb_HousePlan.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>Components used</h3>
target="_other">FastNavPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="https://sketchfab.com/bimcc"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/glb_VianneyHouse.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3>Components used</h3>
target="_other">GLTFLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="https://sketchfab.com/bimcc"
Expand Down
7 changes: 5 additions & 2 deletions examples/buildings/jitter_singlePrecision_MAP.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ <h3>Components Used</h3>

</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li><a href="https://www.notion.so/xeokit/Viewing-Double-Precision-Models-3f9e155fd1394d1f974474484decf31b"
target="_other">Tutorial</a></li>
target="_other">Viewing Double Precision Models</a></li>
</ul>
<h3>Assets</h3>
<ul>
<li>Model provided by <a href="https://bimdata.io" target="_other">BIMData.io</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/positioning_cartesianCoordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>Components Used</h3>
target="_other">WebIFCLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
7 changes: 5 additions & 2 deletions examples/buildings/positioning_geodesicCoordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ <h3>Components Used</h3>
target="_other">WebIFCLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Geographically-Positioning-Models-80828a6e522b415b8491dc7bbcc3ba93"
target="_other">Tutorial</a>
target="_other">Geographically Positioning Models</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
target="_other">Model source</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_dtx_Duplex.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_dtx_Duplex_types.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_dtx_MAPGroundFloor.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>Model provided by <a href="https://bimdata.io" target="_other">BIMData.io</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_vbo_Duplex.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_vbo_MAPGroundFloor.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>Model provided by <a href="https://bimdata.io" target="_other">BIMData.io</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_vbo_ignoreMetadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
2 changes: 1 addition & 1 deletion examples/buildings/web-ifc_vbo_isolateStorey.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3>Components Used</h3>
target="_other">MetaScene</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/274"
Expand Down
13 changes: 10 additions & 3 deletions examples/buildings/xkt_dtx_APHS.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<canvas id="myNavCubeCanvas"></canvas>
<div class="slideout-sidebar">
<img class="info-icon" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading a BIM model from the file system</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>
<h3>Stats</h3>
<ul>
<li>
Expand All @@ -50,7 +50,14 @@ <h3>Components Used</h3>
target="_other">XKTLoaderPlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li>
<a href="http://openifcmodel.cs.auckland.ac.nz/Model/Details/322"
Expand Down
26 changes: 22 additions & 4 deletions examples/buildings/xkt_dtx_DemoProjekt.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading a BIM Model from the File System, Data Textures Enabled</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>
<h3>Stats</h3>
<ul>
<li>
Expand All @@ -154,7 +154,14 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li>
<a href="https://knowledge.autodesk.com/support/revit-products/getting-started/caas/CloudHelp/cloudhelp/2020/ENU/Revit-GetStarted/files/GUID-61EF2F22-3A1F-4317-B925-1E85F138BE88-htm.html"
Expand Down Expand Up @@ -221,7 +228,18 @@ <h3>Resources</h3>
id: "myModel",
src: "../../assets/models/xkt/v10/glb/archicad-demoprojekt.xkt",
excludeTypes: ["IfcSpace"],
edges: true
edges: true,
objectDefaults: { // This model has opaque windows / spaces; make them transparent
"IfcPlate": {
opacity: 0.3 // These are used as windows in this model - make transparent
},
"IfcWindow": {
opacity: 0.4
},
"IfcSpace": {
opacity: 0.4
}
}
});

const t0 = performance.now();
Expand Down
13 changes: 10 additions & 3 deletions examples/buildings/xkt_dtx_HolterTower.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" style="width:280px; padding-bottom:10px;" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading an XKT model</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>

<h3>Stats</h3>
<ul>
Expand All @@ -156,7 +156,14 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li><a href="https://www.cityjson.org/" target="_other">Model source</a></li>
</ul>
Expand Down
28 changes: 23 additions & 5 deletions examples/buildings/xkt_dtx_IfcOpenHouse4.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" style="width:280px; padding-bottom:10px;" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading an XKT model</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>

<h3>Stats</h3>
<ul>
Expand All @@ -156,7 +156,14 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li><a href="https://www.cityjson.org/" target="_other">Model source</a></li>
</ul>
Expand Down Expand Up @@ -204,10 +211,21 @@ <h3>Resources</h3>
src: "../../assets/models/xkt/v8/ifc/IfcOpenHouse4.ifc.xkt",
saoEnabled: true,
edges: true,
dtxEnabled: true // Default
dtxEnabled: true, // Default
objectDefaults: { // This model has opaque windows / spaces; make them transparent
"IfcPlate": {
opacity: 0.3 // These are used as windows in this model - make transparent
},
"IfcWindow": {
opacity: 0.4
},
"IfcSpace": {
opacity: 0.4
}
}
});

sceneModel.on("loaded", ()=>{
sceneModel.on("loaded", () => {
viewer.cameraFlight.jumpTo(sceneModel);
});

Expand Down
13 changes: 10 additions & 3 deletions examples/buildings/xkt_dtx_MAP.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" style="width:280px; padding-bottom:10px;" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading an XKT model</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>

<h3>Stats</h3>
<ul>
Expand All @@ -156,7 +156,14 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li><a href="https://www.cityjson.org/" target="_other">Model source</a></li>
</ul>
Expand Down
13 changes: 10 additions & 3 deletions examples/buildings/xkt_dtx_RAC.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
<div id="treeViewContainer"></div>
<div class="slideout-sidebar">
<img class="info-icon" style="width:280px; padding-bottom:10px;" src="../../assets/images/bim_icon.png"/>
<h1>XKTLoaderPlugin</h1>
<h2>Loading an XKT model</h2>
<h1>XKTLoaderPlugin and Data Textures</h1>
<h2>Loading a BIM model from an XKT file into a data texture model representation</h2>
<h3>Stats</h3>
<ul>
<li>
Expand All @@ -155,7 +155,14 @@ <h3>Components used</h3>
target="_other">NavCubePlugin</a>
</li>
</ul>
<h3>Resources</h3>
<h3>Tutorials</h3>
<ul>
<li>
<a href="https://www.notion.so/xeokit/Compact-Model-Representation-using-Data-Textures-e8093ae372fa47bf9995c26dc24ccd53?pvs=4"
target="_other">Compact Model Representation using Data Textures</a>
</li>
</ul>
<h3>Assets</h3>
<ul>
<li><a href="https://www.cityjson.org/" target="_other">Model source</a></li>
</ul>
Expand Down
Loading

0 comments on commit acaa2e6

Please sign in to comment.