Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
859a058
implmented
danielzhong Oct 27, 2025
6bb6228
update
danielzhong Oct 27, 2025
b935277
Update packages/engine/Source/Scene/GltfLoader.js
danielzhong Oct 27, 2025
ca8380f
Merge branch 'main' into daniel/edge_visibility_material
danielzhong Oct 29, 2025
072e65f
upload example glb
danielzhong Oct 30, 2025
d30ad47
upload example glb
danielzhong Oct 30, 2025
5d4770e
test
danielzhong Oct 30, 2025
bb9f62f
test
danielzhong Oct 30, 2025
d4db1ea
Merge branch 'main' into daniel/edge_visibility_material
danielzhong Oct 30, 2025
11d6b15
unit tests
danielzhong Oct 30, 2025
6d381de
fix errors
danielzhong Oct 30, 2025
a72903f
test
danielzhong Oct 30, 2025
a2de2ca
test
danielzhong Oct 30, 2025
e5678b1
test
danielzhong Oct 30, 2025
65b28c9
fix
danielzhong Dec 8, 2025
4563c06
fix
danielzhong Dec 8, 2025
9866b2f
Merge branch 'main' into daniel/edge_visibility_material
danielzhong Dec 8, 2025
47d7b05
fix
danielzhong Dec 8, 2025
26b586e
test glb fix
danielzhong Dec 8, 2025
b11655e
test glb fix
danielzhong Dec 8, 2025
6c71ebc
support BENTLEY_materials_point_style
markschlosseratbentley Dec 10, 2025
0432ac5
Merge branch 'main' into markschlosser/BENTLEY_materials_point_style
markschlosseratbentley Dec 10, 2025
7b2920c
CHANGES.md
markschlosseratbentley Dec 10, 2025
ada5813
unit test
markschlosseratbentley Dec 10, 2025
200d086
use unsigned short indices so CI can work if OES_element_index_uint i…
markschlosseratbentley Dec 11, 2025
24025b5
make the sandcastle example be dev
markschlosseratbentley Dec 11, 2025
9ebb71b
make the sandcastle example be dev
markschlosseratbentley Dec 11, 2025
e3e4ab0
Remove Showcases label
markschlosseratbentley Dec 11, 2025
e71db4d
Merge branch 'main' into daniel/edge_visibility_material
danielzhong Dec 12, 2025
4337642
Merge branch 'markschlosser/BENTLEY_materials_point_style' into Danie…
danielzhong Dec 24, 2025
769c0b1
Merge branch 'daniel/edge_visibility_material' into DanielZ/BENTLEY_m…
danielzhong Dec 24, 2025
a725bbb
save
danielzhong Dec 30, 2025
22eeaf4
Unit Test
danielzhong Dec 30, 2025
dc42552
CHANGES.md
danielzhong Dec 30, 2025
a009c4b
fix
danielzhong Dec 30, 2025
94841b4
fix
danielzhong Dec 30, 2025
0d24fc7
Sandcastle example
danielzhong Dec 31, 2025
d449a7b
fix gltf
danielzhong Dec 31, 2025
718b423
Fix silhoutteNormal decoding bugs
danielzhong Jan 1, 2026
fe13f48
Fix silhoutteNormal using Cesium API
danielzhong Jan 1, 2026
8db3e57
Fix unit tests
danielzhong Jan 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
339 changes: 339 additions & 0 deletions Apps/SampleData/models/StyledLines/BENTLEY_materials_line_style.gltf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validation error: "VALUE_NOT_IN_RANGE | Value 1 is out of range. | /bufferViews/5/byteStride"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks

Large diffs are not rendered by default.

222 changes: 222 additions & 0 deletions Apps/SampleData/models/StyledPoints/points-r5-g8-b14-y10.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"asset": {
"version": "2.0"
},
"extensionsUsed": [
"BENTLEY_materials_point_style"
],
"accessors": [
{
"bufferView": 0,
"byteOffset": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
5.0,
5.0,
5.0
],
"min": [
-5.0,
-5.0,
-5.0
]
},
{
"bufferView": 1,
"byteOffset": 0,
"componentType": 5123,
"count": 1,
"type": "SCALAR",
"max": [
0
],
"min": [
0
]
},
{
"bufferView": 1,
"byteOffset": 4,
"componentType": 5123,
"count": 1,
"type": "SCALAR",
"max": [
1
],
"min": [
1
]
},
{
"bufferView": 1,
"byteOffset": 8,
"componentType": 5123,
"count": 1,
"type": "SCALAR",
"max": [
2
],
"min": [
2
]
},
{
"bufferView": 1,
"byteOffset": 12,
"componentType": 5123,
"count": 1,
"type": "SCALAR",
"max": [
3
],
"min": [
3
]
}
],
"buffers": [
{
"byteLength": 64,
"uri": "data:application/octet-stream;base64,AACgwAAAoMAAAKDAAACgQAAAoMAAAKDAAAAAAAAAoEAAAKDAAAAAAAAAAAAAAKBAAAAAAAEAAAACAAAAAwAAAA=="
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 48,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 16,
"target": 34963
}
],
"materials": [
{
"name": "Red",
"pbrMetallicRoughness": {
"baseColorFactor": [
1.0,
0.0,
0.0,
1.0
],
"metallicFactor": 0.0
},
"extensions": {
"BENTLEY_materials_point_style": {
"diameter": 5.0
}
}
},
{
"name": "Green",
"pbrMetallicRoughness": {
"baseColorFactor": [
0.0,
1.0,
0.0,
1.0
],
"metallicFactor": 0.0
},
"extensions": {
"BENTLEY_materials_point_style": {
"diameter": 8.0
}
}
},
{
"name": "Blue",
"pbrMetallicRoughness": {
"baseColorFactor": [
0.0,
0.0,
1.0,
1.0
],
"metallicFactor": 0.0
},
"extensions": {
"BENTLEY_materials_point_style": {
"diameter": 14.0
}
}
},
{
"name": "Yellow",
"pbrMetallicRoughness": {
"baseColorFactor": [
1.0,
1.0,
0.0,
1.0
],
"metallicFactor": 0.0
},
"extensions": {
"BENTLEY_materials_point_style": {
"diameter": 10.0
}
}
}
],
"meshes": [
{
"name": "PointCloud",
"primitives": [
{
"mode": 0,
"material": 0,
"indices": 1,
"attributes": {
"POSITION": 0
}
},
{
"mode": 0,
"material": 1,
"indices": 2,
"attributes": {
"POSITION": 0
}
},
{
"mode": 0,
"material": 2,
"indices": 3,
"attributes": {
"POSITION": 0
}
},
{
"mode": 0,
"material": 3,
"indices": 4,
"attributes": {
"POSITION": 0
}
}
]
}
],
"nodes": [
{
"name": "PointCloudNode",
"mesh": 0
}
],
"scenes": [
{
"nodes": [
0
]
}
],
"scene": 0
}
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

- Fixes label positioning in workflows that delete and recreate clamped labels [#12949](https://github.com/CesiumGS/cesium/issues/12949)

#### Additions :tada:

- Added support for the proposed [BENTLEY_materials_point_style](https://github.com/CesiumGS/glTF/pull/91) glTF extension. This allows point primitives to have a diameter property specified and respected when loaded via glTF.
- Added support for the proposed [BENTLEY_materials_line_style](https://github.com/CesiumGS/glTF/pull/XXX) glTF extension. This enables CAD-style line visualization with variable width and dash patterns. Lines and edges can now have customizable `width` (in screen pixels) and `pattern` (16-bit repeating on/off pattern) properties when loaded via glTF.
- Refactored `EXT_mesh_primitive_edge_visibility` implementation to use quad-based rendering instead of `gl_line` primitives. This enables variable line width support, as WebGL does not support line widths greater than 1. Each edge is now tessellated into a quad (4 vertices, 2 triangles) that expands perpendicular to the edge direction based on the material's width property.

## 1.136 - 2025-12-01

### @cesium/engine
Expand Down Expand Up @@ -38,6 +44,7 @@

- Added experimental support for loading 3D Tiles as terrain, via `Cesium3DTilesTerrainProvider`. See [the PR](https://github.com/CesiumGS/cesium/pull/12963) for limitations on the types of 3D Tiles that can be used. [#12296](https://github.com/CesiumGS/cesium/issues/12296)
- Added support for [EXT_mesh_primitive_edge_visibility](https://github.com/KhronosGroup/glTF/pull/2479) glTF extension. [#12765](https://github.com/CesiumGS/cesium/issues/12765)
- Extended edge visibility loading to honor material colors and line-string overrides from EXT_mesh_primitive_edge_visibility.

#### Fixes :wrench:

Expand Down
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Loading