Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glTFへの属性情報付与 #268

Merged
merged 114 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 106 commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
7b6e961
initial setting
nokonoko1203 Feb 2, 2024
9724831
initial setting
nokonoko1203 Feb 2, 2024
f025bdb
initial setting
nokonoko1203 Feb 2, 2024
b1523b5
save
nokonoko1203 Feb 2, 2024
57f038c
add todo
nokonoko1203 Feb 2, 2024
89d5719
add todo
nokonoko1203 Feb 2, 2024
01e7f62
Merge branch 'main' into gltf-attributes
nokonoko1203 Feb 4, 2024
6cd9614
Merge branch 'main' into gltf-attributes
nokonoko1203 Feb 5, 2024
2bf1f0e
change dir name
nokonoko1203 Feb 5, 2024
d2a41ac
make mpoly3 and triangulate
nokonoko1203 Feb 5, 2024
6314346
add comment
nokonoko1203 Feb 5, 2024
c3402ae
output gltf
nokonoko1203 Feb 5, 2024
c0973d4
remove todo
nokonoko1203 Feb 5, 2024
f3a29e6
merge
nokonoko1203 Feb 5, 2024
4d86bc7
fix
nokonoko1203 Feb 5, 2024
d1ab1fe
add ext_mesh_features examples
nokonoko1203 Feb 5, 2024
f37e34a
add gltf_ext_structural_metadata examples
nokonoko1203 Feb 5, 2024
f78ba9a
add todo
nokonoko1203 Feb 5, 2024
2d658bc
build mpoly3
nokonoko1203 Feb 5, 2024
55c6367
build mpoly3 and attributes
nokonoko1203 Feb 5, 2024
6422ab0
print
nokonoko1203 Feb 5, 2024
4ad1fb2
export glb
nokonoko1203 Feb 5, 2024
da2452d
export glb
nokonoko1203 Feb 5, 2024
d79d336
remove unnecessary code
nokonoko1203 Feb 5, 2024
a69e964
add pub
nokonoko1203 Feb 5, 2024
3f726bc
add ext_mesh_features
nokonoko1203 Feb 5, 2024
2a526ea
handling feature_ids
nokonoko1203 Feb 6, 2024
10de179
fix feature_id bufferView
nokonoko1203 Feb 6, 2024
d0186d8
to float
nokonoko1203 Feb 6, 2024
3fd1f9c
write sample tileset.json
nokonoko1203 Feb 6, 2024
803ef0f
extract function
nokonoko1203 Feb 6, 2024
6fe27a2
fix
nokonoko1203 Feb 6, 2024
f5cb7bf
Fix viewer code
nokonoko1203 Feb 6, 2024
523ca06
modify demo
nokonoko1203 Feb 6, 2024
9deaa95
to UnsignedInt
nokonoko1203 Feb 6, 2024
5f53839
Merge branch 'main' into gltf-attributes-poc
nokonoko1203 Feb 6, 2024
b38376c
error handling
nokonoko1203 Feb 6, 2024
1dc5011
Corrected the way vertex is handled
nokonoko1203 Feb 6, 2024
8222d8e
add todo
nokonoko1203 Feb 6, 2024
c6e181c
fix
nokonoko1203 Feb 6, 2024
7dd61b4
Create a glTF in the correct position
nokonoko1203 Feb 7, 2024
2449257
replace 3dtiles
nokonoko1203 Feb 7, 2024
cfe3d21
Merge branch 'main' into gltf-attributes-poc
nokonoko1203 Feb 7, 2024
0fa1a66
Merge branch 'gltf-attributes-poc' into gltf-structural_metadata
nokonoko1203 Feb 7, 2024
062098a
extract only the necessary schema
nokonoko1203 Feb 7, 2024
1da4081
push
nokonoko1203 Feb 7, 2024
dd71301
add property type
nokonoko1203 Feb 7, 2024
63a60e3
parse type_def
nokonoko1203 Feb 7, 2024
def230e
define property table
nokonoko1203 Feb 7, 2024
ba31d1b
define property table
nokonoko1203 Feb 7, 2024
f0199c0
fix property table
nokonoko1203 Feb 7, 2024
b1456f1
add todo
nokonoko1203 Feb 7, 2024
81ccf28
fix
nokonoko1203 Feb 8, 2024
111ae36
Readable in Cesium
nokonoko1203 Feb 8, 2024
347380c
Readable in Cesium
nokonoko1203 Feb 8, 2024
75b921e
change processing order
nokonoko1203 Feb 9, 2024
e183cd8
define to_gltf_classes
nokonoko1203 Feb 9, 2024
c2d8ab3
add test_to_gltf_classes
nokonoko1203 Feb 9, 2024
54ccc33
fix
nokonoko1203 Feb 9, 2024
6aa50f3
impl to_gltf_property_tables
nokonoko1203 Feb 9, 2024
f284ef8
move Attribute struct
nokonoko1203 Feb 9, 2024
d9bcc66
use ahash::RandomState
nokonoko1203 Feb 9, 2024
1ffb444
create propertyTable with new logic
nokonoko1203 Feb 9, 2024
4f0c1ef
remove unnecessary part
nokonoko1203 Feb 9, 2024
5bb322b
fix
nokonoko1203 Feb 9, 2024
1c5c5b4
impl to_gltf_property_type
nokonoko1203 Feb 9, 2024
0fb7651
fix attributes_to_buffer
nokonoko1203 Feb 9, 2024
468bb24
extend buffer
nokonoko1203 Feb 9, 2024
5f29754
add todo
nokonoko1203 Feb 9, 2024
9281d14
view gltf metadata
nokonoko1203 Feb 9, 2024
d73513e
change the order of processing
nokonoko1203 Feb 11, 2024
14a3494
extract functions
nokonoko1203 Feb 11, 2024
863d06a
split function
nokonoko1203 Feb 12, 2024
d411d41
fix
nokonoko1203 Feb 12, 2024
41a27b4
rename
nokonoko1203 Feb 12, 2024
5367246
change target data
nokonoko1203 Feb 12, 2024
db9f853
extract function of gltf writer
nokonoko1203 Feb 12, 2024
4d38669
move Vertex structure
nokonoko1203 Feb 12, 2024
c930ca3
rename
nokonoko1203 Feb 12, 2024
2ace858
Merge branch 'main' into gltf-structural_metadata
nokonoko1203 Feb 12, 2024
2e5a73e
modify transformer requirement
nokonoko1203 Feb 12, 2024
766e6ef
correct
nokonoko1203 Feb 12, 2024
c368385
fix
nokonoko1203 Feb 12, 2024
89fa715
fix
nokonoko1203 Feb 12, 2024
89f1767
multiple class
nokonoko1203 Feb 12, 2024
1fb6d3d
clone
nokonoko1203 Feb 12, 2024
95433c3
make base gltf
nokonoko1203 Feb 12, 2024
dcfcf6b
fix
nokonoko1203 Feb 13, 2024
2278aca
change
nokonoko1203 Feb 13, 2024
d12636a
fix single type
nokonoko1203 Feb 13, 2024
b6656eb
fix
nokonoko1203 Feb 13, 2024
2df592a
fix
nokonoko1203 Feb 13, 2024
e716601
fix feature_count
nokonoko1203 Feb 13, 2024
0b5f3ad
handle indices of multiple triangle
nokonoko1203 Feb 13, 2024
4229fb4
fix
nokonoko1203 Feb 13, 2024
f3238ed
fix
nokonoko1203 Feb 13, 2024
afe3b1f
add todo
nokonoko1203 Feb 13, 2024
4f15519
fix attributes
nokonoko1203 Feb 14, 2024
055d7d1
remove comment
nokonoko1203 Feb 14, 2024
ad072ae
fix feature_id
nokonoko1203 Feb 14, 2024
056d8ab
fix
nokonoko1203 Feb 14, 2024
a21389b
fix
nokonoko1203 Feb 14, 2024
e990f3d
fix
nokonoko1203 Feb 14, 2024
35e98aa
add test.glb
nokonoko1203 Feb 14, 2024
54e7a04
Merge branch 'main' into gltf-structural_metadata
nokonoko1203 Feb 14, 2024
78ec42d
fix
nokonoko1203 Feb 14, 2024
9fc1133
Merge branch 'main' into gltf-structural_metadata
nokonoko1203 Feb 19, 2024
d1f7feb
fix
nokonoko1203 Feb 19, 2024
3ad9707
fix test
nokonoko1203 Feb 19, 2024
2714500
modify sample html
nokonoko1203 Feb 19, 2024
d7cc1cc
fix
nokonoko1203 Feb 19, 2024
9ecc493
remove test
nokonoko1203 Feb 19, 2024
5567d22
fix
nokonoko1203 Feb 19, 2024
a3ef0d8
fix test
nokonoko1203 Feb 19, 2024
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
126 changes: 0 additions & 126 deletions demo/cesium/examples/ext_mesh_features/FeatureIdAttribute.gltf

This file was deleted.

Binary file modified demo/cesium/examples/ext_mesh_features/test.glb
Binary file not shown.
87 changes: 87 additions & 0 deletions demo/cesium/examples/ext_mesh_features/test.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"extensionsUsed": ["EXT_mesh_features"],
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 22562,
"type": "VEC3",
"max": [527.1293573356234, 387.3888158304617, 542.6486890139058],
"min": [-527.1293573356234, -387.388815829996, -542.6486890139058]
},
{
"bufferView": 1,
"componentType": 5125,
"count": 115440,
"type": "SCALAR"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 22562,
"type": "SCALAR"
}
],
"asset": {
"generator": "nusamai-gltf",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 270744,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 270744,
"byteLength": 461760,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 732504,
"byteLength": 90248,
"target": 34962
}
],
"buffers": [
{
"byteLength": 822752
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"_FEATURE_ID_0": 2,
"POSITION": 0
},
"indices": 1,
"extensions": {
"EXT_mesh_features": {
"featureIds": [
{
"featureCount": 22562,
"attribute": 0
}
]
}
}
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [-3929620.269123388, 3649625.761440213, -3439457.322811205]
}
],
"scenes": [
{
"nodes": [0]
}
]
}

This file was deleted.

Loading
Loading