@yschindel/ara3d-webgl 1.3.10 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -23
- package/README.md +113 -108
- package/dist/ara3d-webgl.mjs +6553 -6568
- package/dist/ara3d-webgl.mjs.map +1 -1
- package/dist/ara3d-webgl.umd.js +152 -157
- package/dist/ara3d-webgl.umd.js.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/loader/BimParameterDescriptors.d.ts +7 -0
- package/dist/types/loader/BimParameterTable.d.ts +6 -0
- package/dist/types/loader/bimData.d.ts +39 -0
- package/dist/types/loader/bimEntities.d.ts +9 -0
- package/dist/types/loader/bimGeometry.d.ts +1 -1
- package/dist/types/loader/bimOpenSchemaLoader.d.ts +16 -4
- package/dist/types/loader/bimQuery.d.ts +13 -0
- package/dist/types/loader/bimResolver.d.ts +49 -0
- package/dist/types/loader/buildGeometryGroup.d.ts +20 -11
- package/dist/types/loader/buildInstances.d.ts +13 -0
- package/dist/types/viewer/environment.d.ts +1 -3
- package/dist/types/viewer/rendering/renderer.d.ts +2 -3
- package/dist/types/viewer/viewer.d.ts +1 -0
- package/dist/types/viewer/viewerSettings.d.ts +1 -49
- package/package.json +77 -74
- package/dist/types/loader/bimGhostController.d.ts +0 -21
- package/dist/types/loader/ghostMaterial.d.ts +0 -6
package/LICENSE
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Ara 3D Inc.
|
|
4
|
-
Copyright (c) 2021 VIMaec LLC.
|
|
5
|
-
Copyright (c) 2018 Ara 3D Inc.
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ara 3D Inc.
|
|
4
|
+
Copyright (c) 2021 VIMaec LLC.
|
|
5
|
+
Copyright (c) 2018 Ara 3D Inc.
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,108 +1,113 @@
|
|
|
1
|
-
# Ara 3D WebGL - BIM Open Schema Viewer
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
BIM Open Schema
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
40
|
-
- `
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- `
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
- `
|
|
63
|
-
- `
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* [
|
|
101
|
-
* [
|
|
102
|
-
* [
|
|
103
|
-
* [
|
|
104
|
-
* [
|
|
105
|
-
* [
|
|
106
|
-
* [
|
|
107
|
-
* [
|
|
108
|
-
* [
|
|
1
|
+
# Ara 3D WebGL - BIM Open Schema Viewer
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## [Live Demo](https://ara3d.github.io/ara3d-webgl/)
|
|
6
|
+
|
|
7
|
+
<img
|
|
8
|
+
src="https://github.com/user-attachments/assets/99407018-c5d2-46b2-b602-7e4671c87860"
|
|
9
|
+
alt="BIM Open Schema Viewer"
|
|
10
|
+
width="200"
|
|
11
|
+
height="157"
|
|
12
|
+
align="right"
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
A **WebGL viewer** for extremely large 3D models of buildings and infrastructure
|
|
16
|
+
represented as [BIM Open Schema .BOS files](https://github.com/ara3d/bim-open-schema).
|
|
17
|
+
|
|
18
|
+
BIM Open Schema is an ultra-compressed and portable BIM data format, which
|
|
19
|
+
is easily extended, built on top [Parquet](https://parquet.apache.org/) format.
|
|
20
|
+
A .BOS file is a ZIP archive that contains multiple Parquet files, which contain
|
|
21
|
+
geometry, parameters, and other BIM data.
|
|
22
|
+
|
|
23
|
+
## Show me the code!
|
|
24
|
+
|
|
25
|
+
We've tried to keep the code as straightforward and legible as possible:
|
|
26
|
+
|
|
27
|
+
- The Three.JS file loader: [`bimOpenSchemaLoader.ts`](https://github.com/ara3d/ara3d-webgl/blob/main/src/loader/bimOpenSchemaLoader.ts)
|
|
28
|
+
- The BIM Geometry type definition: [`bimGeometry.ts`](https://github.com/ara3d/ara3d-webgl/blob/main/src/loader/bimGeometry.ts)
|
|
29
|
+
- The conversion to Three.JS geometry: [`buildGeometryGroup.ts`](https://github.com/ara3d/ara3d-webgl/blob/main/src/loader/buildGeometryGroup.ts)
|
|
30
|
+
|
|
31
|
+
## Building and Running
|
|
32
|
+
|
|
33
|
+
The project uses [vite](https://vite.dev/) for bundling and development.
|
|
34
|
+
|
|
35
|
+
Some of the common tasks, which can be found in the `package.json`.
|
|
36
|
+
|
|
37
|
+
- `npm run dev` - Running the vite dev server with "hot reloading"
|
|
38
|
+
- `npm run build:docs` - Building the examples and API documentation.
|
|
39
|
+
- `npm run serve:docs` - Testing the built examples and API documentation locally
|
|
40
|
+
- `npm run build:lib` - Building the library as a JavaScript module (`.mjs`) file
|
|
41
|
+
|
|
42
|
+
## Camera Controls
|
|
43
|
+
|
|
44
|
+
### Keyboard
|
|
45
|
+
|
|
46
|
+
- `W`, `Up` - Move camera forward
|
|
47
|
+
- `A`, `Left` - Move camera to the left
|
|
48
|
+
- `S`, `Down` - Move camera backward
|
|
49
|
+
- `D`, `Right` - Move camera to the right
|
|
50
|
+
- `E` - Move camera up
|
|
51
|
+
- `Q` - Move camera down
|
|
52
|
+
- `Shift` - faster camera movement while pressed
|
|
53
|
+
- `+` - Increase camera speed
|
|
54
|
+
- `-` - Decrease camera speed
|
|
55
|
+
|
|
56
|
+
### Mouse
|
|
57
|
+
|
|
58
|
+
- `Hold left click + Move mouse` - Rotate camera in current mode
|
|
59
|
+
- `Hold right click + Move mouse` - Pan/tilt camera
|
|
60
|
+
- `Hold middle click + Move mouse` - Truck/pedestal camera
|
|
61
|
+
- `Mouse wheel` - Dolly Camera
|
|
62
|
+
- `Left click` - Select object
|
|
63
|
+
- `Ctrl + Mouse wheel` - Increase/decrease camera speed
|
|
64
|
+
|
|
65
|
+
### Touch
|
|
66
|
+
|
|
67
|
+
- `One Finger swipe` - Tilt/Pan camera
|
|
68
|
+
- `Two Finger swipe` - Truck/Pedestal camera
|
|
69
|
+
- `Two Finger pinch/spread` - Dolly Camera
|
|
70
|
+
|
|
71
|
+
## History
|
|
72
|
+
|
|
73
|
+
At Ara 3D we created a simple 3D web-viewer in March 2019 which had support for multiple file formats.
|
|
74
|
+
The goal was to minimize the amount of code required to create and host a Three.JS viewer in a web-page.
|
|
75
|
+
|
|
76
|
+
The VIM team took over the project in July 2021 and the team, mostly Simon Roberge,
|
|
77
|
+
added many features and enhancements. They also customized the project to meet the needs of their Power BI offering.
|
|
78
|
+
|
|
79
|
+
On December 17, 2024, the VIM team archived the project, and merged it with their React-based viewer project into a
|
|
80
|
+
new repository https://github.com/vimaec/vim-web. Today the VIM viewer is very powerful, but has become very specialized
|
|
81
|
+
to their use-cases.
|
|
82
|
+
|
|
83
|
+
In early 2025 the Ara 3D WebGL project was forked from an earlier snapshot of the repo to revive the spirit of the original viewer,
|
|
84
|
+
while leveraging many of the excellent contributions made by VIM.
|
|
85
|
+
|
|
86
|
+
Today in December 2026, we are focusing on using this viewer as a showcase of the [BIM Open Schema](https://github.com/ara3d/bim-open-schema)
|
|
87
|
+
data format.
|
|
88
|
+
|
|
89
|
+
## Requesting Features, Improvements, or Changes
|
|
90
|
+
|
|
91
|
+
Feel free to log issues or submit pull requests.
|
|
92
|
+
|
|
93
|
+
We also offer very affordable custom software development services if you are using this project in a
|
|
94
|
+
commercial context. For more information reach out to us at [info@ara3d.com](mailto:info@ara3d.com).
|
|
95
|
+
|
|
96
|
+
# Appendix
|
|
97
|
+
|
|
98
|
+
## Related Projects: WebGL Viewers
|
|
99
|
+
|
|
100
|
+
* [Autodesk Viewer](https://viewer.autodesk.com/)
|
|
101
|
+
* [Bentley iTwin](https://www.itwinjs.org/)
|
|
102
|
+
* [Babylon.JS](https://www.babylonjs.com/)
|
|
103
|
+
* [Bldrs.AI](https://bldrs.ai/)
|
|
104
|
+
* [Cesium](https://sandcastle.cesium.com/?src=Cesium%20OSM%20Buildings.html)
|
|
105
|
+
* [e-verse GLTF viewer](https://gltfviewer.e-verse.com/)
|
|
106
|
+
* [glTF Sample Viewer](https://github.com/KhronosGroup/glTF-Sample-Viewer)
|
|
107
|
+
* [That Open Engine - Web IFC](https://github.com/ThatOpen/engine_web-ifc)
|
|
108
|
+
* [Revit 3JS](https://github.com/McCulloughRT/Rvt3js)
|
|
109
|
+
* [Speckle](https://github.com/specklesystems/speckle-server)
|
|
110
|
+
* [vA3C](https://va3c.github.io/)
|
|
111
|
+
* [VIMAEC Web](https://github.com/vimaec/vim-web)
|
|
112
|
+
* [XBim Web UI](https://github.com/xBimTeam/XbimWebUI)
|
|
113
|
+
* [Xeokit](https://github.com/xeokit/xeokit-sdk)
|