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へシリアライズするためのモジュールを作成 #16

Merged
merged 65 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
ed8bb40
added module to serialize gltf
nokonoko1203 Nov 17, 2023
c125e6f
add comment
nokonoko1203 Nov 17, 2023
0276856
remove unnecessary modules
nokonoko1203 Nov 17, 2023
30a638a
move dir
nokonoko1203 Nov 17, 2023
ecbc4f0
change module declaration
nokonoko1203 Nov 17, 2023
72813cc
add extensions
nokonoko1203 Nov 17, 2023
e9d4d17
fix accessors
nokonoko1203 Nov 17, 2023
99a67e4
add animations module
nokonoko1203 Nov 17, 2023
29419ce
change asset module
nokonoko1203 Nov 17, 2023
5f275b5
change buffer module
nokonoko1203 Nov 17, 2023
a712897
add camera module
nokonoko1203 Nov 17, 2023
36bf32d
add image module
nokonoko1203 Nov 17, 2023
2e91e2a
add material module
nokonoko1203 Nov 17, 2023
7569f18
add other module
nokonoko1203 Nov 17, 2023
0951aa6
add test data
nokonoko1203 Nov 17, 2023
2e1825f
change directory
nokonoko1203 Nov 17, 2023
4281de4
change initialization method for gltf and asset
nokonoko1203 Nov 17, 2023
5edcdf4
fix example
nokonoko1203 Nov 17, 2023
ce5b166
fix
nokonoko1203 Nov 17, 2023
0ca997f
Merge branch 'main' into feature/gltf
nokonoko1203 Nov 22, 2023
08ced74
organize dependencies
nokonoko1203 Nov 24, 2023
0fc91b4
add sample code
nokonoko1203 Nov 24, 2023
bafe7d1
add new method
nokonoko1203 Nov 24, 2023
f0a8a0a
converting to JSON strings
nokonoko1203 Nov 24, 2023
5d92faf
add earcut crate
nokonoko1203 Nov 24, 2023
d3fca81
tessellation
nokonoko1203 Nov 24, 2023
53d6c11
add default trait
nokonoko1203 Nov 27, 2023
8ef2dc3
implement default trait in structure
nokonoko1203 Nov 27, 2023
6d935d6
add accessors
nokonoko1203 Nov 27, 2023
b52f977
fix
nokonoko1203 Nov 27, 2023
88c20b7
fix accessor/buffer view/buffer
nokonoko1203 Nov 28, 2023
223f9b5
export glTF
nokonoko1203 Nov 28, 2023
b20a88d
add comments
nokonoko1203 Nov 28, 2023
35a24ce
export GLB
nokonoko1203 Nov 28, 2023
8c0fee0
Merge branch 'main' into feature/gltf
nokonoko1203 Nov 28, 2023
3669fb0
add struct GltfGenerator
nokonoko1203 Nov 29, 2023
a0b2e89
fix
nokonoko1203 Nov 29, 2023
2f80eb6
Revert "add struct GltfGenerator"
nokonoko1203 Nov 29, 2023
af4164b
fix
nokonoko1203 Nov 29, 2023
c392805
add gltf generator
nokonoko1203 Nov 29, 2023
226eb5a
extract function
nokonoko1203 Nov 29, 2023
d7af6a5
format
nokonoko1203 Nov 29, 2023
866ab45
fix
nokonoko1203 Nov 29, 2023
93deae5
import geometry
nokonoko1203 Dec 1, 2023
eeb5988
Merge branch 'main' into feature/gltf
nokonoko1203 Dec 4, 2023
23e66e3
Merge branch 'main' into feature/gltf
nokonoko1203 Dec 4, 2023
e077fd6
fix
nokonoko1203 Dec 4, 2023
8036c34
extract the write portion of the binary buffer into a function
nokonoko1203 Dec 5, 2023
0cd11e9
Merge branch 'main' into feature/gltf
nokonoko1203 Dec 5, 2023
df9aec6
add feature_ids
nokonoko1203 Dec 5, 2023
844667b
temporarily remove feature_id
nokonoko1203 Dec 5, 2023
852c07d
add feature_id
nokonoko1203 Dec 5, 2023
0a173ba
Revert "add feature_id"
nokonoko1203 Dec 5, 2023
85ab4a4
change triangle type
nokonoko1203 Dec 5, 2023
070e495
delete unnecessary parts
nokonoko1203 Dec 5, 2023
f0dbe91
define type
nokonoko1203 Dec 5, 2023
6f8097a
define type
nokonoko1203 Dec 5, 2023
515c758
change struct Triangle
nokonoko1203 Dec 5, 2023
51b40b2
fix
nokonoko1203 Dec 5, 2023
208b119
change properties
nokonoko1203 Dec 5, 2023
2b6c43a
add new method
nokonoko1203 Dec 5, 2023
bcc2dd0
implement feature methods
nokonoko1203 Dec 5, 2023
dbaf144
make features
nokonoko1203 Dec 6, 2023
0768087
fix
nokonoko1203 Dec 6, 2023
59287ef
fix
nokonoko1203 Dec 6, 2023
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
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
members = [
"app/src-tauri",
"nusamai-geometry",
"nusamai-gltf",
"nusamai-geojson",
"nusamai-plateau",
"nusamai-mvt",
Expand Down
2 changes: 1 addition & 1 deletion nusamai-geojson/examples/citygml_polygons.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! CityGMLファイル (.gml) からポリゴンを読み込んで .geojson 形式で出力するデモ
//! CityGMLファイル (.gml) からポリゴンを読み込んで .geojson 形式で出力するデモ
//! nusamai-geometry/examples/citygml_polygons.rs を元にしています。
//!
//! 使用例:
Expand Down
23 changes: 23 additions & 0 deletions nusamai-gltf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "nusamai-gltf"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
encoding_rs = "0.8.33"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = { version = "1.0.108", features = ["float_roundtrip"] }
serde_repr = "0.1.17"

[dev-dependencies]
glob = "0.3.1"
clap = { version = "4.4.6", features = ["derive"] }
elementtree = "1.2.3"
nusamai-geometry = { path = "../nusamai-geometry" }
quick-xml = "0.31.0"
thiserror = "1.0.50"
earcut-rs = { git = "https://github.com/MIERUNE/earcut-rs.git" }
indexmap = "2.1.0"
byteorder = "1.5.0"
Loading