251 Commits

Author SHA1 Message Date
Syoyo Fujita
a91321386f Remove unused displayColor, displayOpacity member variables in GPrim.
Fix SpecType enum ordering.
Skip parsing unsupported specifier(`over`, `class`)
Skip some composition arcs settings in USDC.
2022-09-20 19:15:37 +09:00
Syoyo Fujita
f44c09f948 Reduce stack size usage(especially ReconstructPrimRecursively() took 103 KB of stack, which will easily cause stack overflow for USD data with roughly 8 or more nested scene graph. See issue #20 for details. 2022-09-18 21:58:42 +09:00
Syoyo Fujita
b7d7dfae71 Use naiive implementation for Token type to simplify the system.
Harden crate reader for invalid TOC sections.
Add USDA/USDC/USDZ file type detection API.
2022-09-17 02:16:29 +09:00
Syoyo Fujita
fa4363d717 Simplify include_path
To avoid multiple symbol definition error when linking tinyusdz with an app which also uses stb_image and stb_image_write,
added cmake option TINYUSDZ_NO_STB_IMAGE_IMPLEMENTATION and TINYUSDZ_NO_STB_IMAGE_WRITE_IMPLEMENTATION.
2022-09-16 21:19:23 +09:00
Syoyo Fujita
0f193eaaaa Refactor attributes for GeomMesh.
Add TimeCode
2022-09-13 04:54:24 +09:00
Syoyo Fujita
f651182b6b Fix MSVC build
Enable C++ Exception by default for MSVC target.
2022-09-12 22:19:36 +09:00
Syoyo Fujita
8ae7c781dc Add performance. 2022-09-12 04:01:12 +09:00
Syoyo Fujita
5163ea591a Fix sdlviewer build on MSVC. 2022-09-09 01:47:21 +09:00
Syoyo Fujita
1c83236390 Add placeholder for AssetResolution. 2022-09-03 04:22:39 +09:00
Syoyo Fujita
e6ce8728d6 Add tiny-format, simple Python-like format print utility. 2022-09-02 22:00:23 +09:00
Syoyo Fujita
6b2b6fc4cd Refactoring Prim reconstruction. 2022-09-01 22:56:35 +09:00
Syoyo Fujita
8cd914e350 Refactor Stage class. 2022-08-31 04:13:04 +09:00
Syoyo Fujita
31f6b1c274 Fix usd-to-json build.
Refactor Dict type used in Crate reader.
2022-08-30 04:10:39 +09:00
Syoyo Fujita
18b4242317 sandbox/usda -> examples/usda_parser 2022-08-29 19:04:05 +09:00
Syoyo Fujita
2637e5800a Improve Xform parsing and pprint.
Initial parsing support of `customLayerData` in Stage metadatum.
2022-08-23 23:06:37 +09:00
Syoyo Fujita
b84c925fd3 Use original LZ4 source code. 2022-08-16 21:30:15 +09:00
Syoyo Fujita
d29f446e91 Refactor for Prim scene graph reconstruction. 2022-08-13 23:11:23 +09:00
Syoyo Fujita
17b65ecfec Refactoring Path class.
Refactoring usdGeom struct definition.
2022-08-11 22:03:35 +09:00
Syoyo Fujita
bc52fa9898 Refactor ifdef symbol.
Initial support of loading EXR and TIFF/DNG image.
2022-08-09 22:36:01 +09:00
Syoyo Fujita
c293c39441 Revert to use pybind11, since (probably currently widely-used) PyPI manylinux archtecture still does not support C++17. 2022-08-09 01:20:29 +09:00
Syoyo Fujita
10983a50ae Add simple_match
Add some python build scripts.
2022-08-08 20:17:03 +09:00
Syoyo Fujita
f7aeae5357 Rename HighLevelScene -> Stage.
Add image-writer(no implementation yet)
Fix Android build.
2022-08-07 22:06:08 +09:00
Syoyo Fujita
23b79415b3 Refactor code. 2022-08-07 04:40:23 +09:00
Syoyo Fujita
5f27971086 Refactor codes. 2022-08-06 23:13:34 +09:00
Syoyo Fujita
e1310c99be Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2022-08-06 04:25:11 +09:00
Syoyo Fujita
1c690a21a1 Implement some of RenderMesh. 2022-08-06 04:24:35 +09:00
Syoyo Fujita
0f1dae2388 CI build script for MSVC. 2022-08-05 04:00:49 +09:00
Syoyo Fujita
51374d3190 Add local Python build script(for C.I. build)
Add tinyusdz cmake script using locally installed Python.
2022-08-03 21:57:02 +09:00
Syoyo Fujita
749872f0d0 Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2022-08-01 16:53:43 +09:00
Syoyo Fujita
62e10b90e7 Find Python Framework. 2022-08-01 16:49:54 +09:00
Syoyo Fujita
a217bdc445 Remove pybind11
Fix build with nanobind.
2022-08-01 03:16:48 +09:00
Syoyo Fujita
490d2c94d5 Implement some of Tydra render data structure. 2022-07-31 22:38:14 +09:00
Syoyo Fujita
0ac857fea2 Fix build. 2022-07-31 04:07:56 +09:00
Syoyo Fujita
0967b7561b Add benchmark(to measure the performance of C++ data structure). 2022-07-21 19:13:53 +09:00
Syoyo Fujita
a97402d55e Implement some of Value inliner for Crate serializaton. 2022-07-20 21:37:01 +09:00
Syoyo Fujita
e1efe99243 Remove formatxx 2022-07-18 22:32:59 +09:00
Syoyo Fujita
466f8d0609 Add formatxx(with C++14 downgrading modification) 2022-07-18 19:12:53 +09:00
Syoyo Fujita
05f8e93682 USDA parser refactoring(W.I.P.) 2022-07-16 19:51:17 +09:00
Syoyo Fujita
45ba092ac0 Refactoring USDC parser...(W.I.P.) 2022-07-14 22:32:47 +09:00
Syoyo Fujita
9c42ffa710 Modularize USDC/USDA parser/writer. 2022-07-14 04:42:07 +09:00
Syoyo Fujita
a6dc535285 Modularize USDA Parser/Writer and USDC Writer. 2022-07-13 23:00:54 +09:00
Syoyo Fujita
900694fd85 Use fast_float instead of ryu to parse floating-point value from string.
Fix `custom` parsing
2022-07-10 17:41:41 +09:00
Syoyo Fujita
b0ada9cd71 Fix cmakefile 2022-07-08 17:42:43 +09:00
Syoyo Fujita
951a6c1822 Refactoring value type(W.I.P.) 2022-07-06 21:34:20 +09:00
Syoyo Fujita
e40e96efaa Refactor codes(W.I.P.) 2022-07-02 22:47:55 +09:00
Syoyo Fujita
1c5d5591e3 Refactoring Crate parser codes...(W.I.P.) 2022-07-01 22:34:37 +09:00
Syoyo Fujita
925288ec7a Rename simple_dump -> simple_usdz_dump
Add some usdc unit tests.
2022-06-26 20:14:24 +09:00
Syoyo Fujita
be3a1294cb Code Refactoring: Moving USDC parser(CrateFile parser) code from tinyusdz.cc to crate-file.cc(W.I.P.) 2022-06-14 03:30:41 +09:00
Syoyo Fujita
791df5748c Merge branch 'dev' into token_class 2022-06-12 03:11:27 +09:00
Syoyo Fujita
fe27f00588 Add CXX_EXCEPTIONS On/off flag. 2022-06-12 03:10:59 +09:00