364 Commits

Author SHA1 Message Date
Syoyo Fujita
e1dc0b9d70 Refactor OpenGL code. 2023-02-17 06:35:16 +09:00
Syoyo Fujita
729148f243 Fix CMakeLists.txt
Add more OpenGL codes for Mesh's VertexArray data setup.
2023-02-16 06:23:25 +09:00
Syoyo Fujita
1044b4ccb1 Add Stage::commit() API 2023-02-15 20:52:30 +09:00
Syoyo Fujita
9d6bd5bd1a Add few opengl code. 2023-02-05 06:59:49 +09:00
Syoyo Fujita
2471c4c4bd Add some GL codes. 2023-02-04 06:05:41 +09:00
Syoyo Fujita
0164c3585b Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2023-02-04 01:17:25 +09:00
Syoyo Fujita
28e63e97f3 Use OpenGL3 2023-02-04 01:17:12 +09:00
Syoyo Fujita
1d86fc90a1 Use single-header version of nlohmann json.hpp
Fix usd_to_json example build.
2023-02-03 22:44:27 +09:00
Syoyo Fujita
361f157048 Add shader(resource) embedding Python script. 2023-02-02 22:38:05 +09:00
Syoyo Fujita
629bb9e00b Add GL shader util code.
Add GL shaders from gltf-insight.
2023-02-02 21:53:33 +09:00
Syoyo Fujita
73acd3b96f [API tutorial] Add very simple material/shader construction example. 2023-02-01 02:27:28 +09:00
Syoyo Fujita
fc703341fc Implement matrixNf <-> matrixNd conversion(constructor and operator=)
[EAMPLE] Implement some OpenGL stuffs.
2023-01-31 05:48:50 +09:00
Syoyo Fujita
dce6ff8a28 Add Metal C++ header file(Will be used in example viewer). 2023-01-30 18:35:19 +09:00
Syoyo Fujita
726a2a57d7 BuiltinRelationship -> RelationshipProperty.
[openglviewer] Check texel data byte length.
2023-01-30 17:48:56 +09:00
Syoyo Fujita
1121aece34 Introduce BuiltinRelationship class(to replace optional<Relationship>).
W.I.P.
2023-01-30 06:29:24 +09:00
Syoyo Fujita
ef46ad1359 Use absolute path in cmakelists. 2023-01-30 05:11:34 +09:00
Syoyo Fujita
c086691c0a Cosmetics. 2023-01-28 23:07:06 +09:00
Syoyo Fujita
a24f2b1851 Replace glm with linalg.h in viewport_camera.hh 2023-01-28 21:34:16 +09:00
Syoyo Fujita
4c304a0f3d Import viewport camera util from Vulkan example(W.I.P.). 2023-01-28 06:08:48 +09:00
Syoyo Fujita
b13d065d6c [Tydra] print all UsdPreviewSurface parameters. 2023-01-25 18:05:52 +09:00
Syoyo Fujita
263943ad8f Fix USD_MONOLITHIC cmake flag.
Add boost to third-party license.
2023-01-24 05:55:44 +09:00
Syoyo Fujita
5a8521edd7 Add sin_pi and cos_pi for better sin/cos.
- return 0 for sin(180), cos(90), etc.
- return the same sin/cos value at +/- 45 * n degree.
2023-01-23 22:08:30 +09:00
Syoyo Fujita
0fcb94d8c8 Improve cmake bootstrap for examples/pxrusd build.
Cosmetics for examples/openglviewer.
2023-01-23 05:56:16 +09:00
Syoyo Fujita
3485bf978e Fix optixviwer example build. 2023-01-20 18:49:47 +09:00
Syoyo Fujita
809fefb4c0 Simplify cmakefile of sdlviewer example. 2023-01-19 20:36:20 +09:00
Syoyo Fujita
2f1becca9e Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2023-01-19 20:30:47 +09:00
Syoyo Fujita
33542dee5d Remove bullet3 for a while since no actual use of bullet3 in TinyUSDZ examples. 2023-01-19 20:29:57 +09:00
Syoyo Fujita
111f2a9d4d Fix openglviewer example build.
Do not build tests, examples and tools by default when tinyusdz is being added by
add_subdirectory()
2023-01-19 02:17:38 +09:00
Syoyo Fujita
63369ec52c Add example to add Variant in TinyUSDZ API. 2023-01-15 18:21:04 +09:00
Syoyo Fujita
1c51aac234 Implement io::FindFile and io::FileExists 2023-01-11 22:56:34 +09:00
Syoyo Fujita
20849b162c Cosmetics. 2023-01-05 01:49:24 +09:00
Syoyo Fujita
f5379592e9 Setup RenderSceneConverter class(W.I.P.). 2023-01-04 05:01:22 +09:00
Syoyo Fujita
5382d082ea Add USD Stage to RenderScene cli conversion check tool. 2022-12-30 16:52:11 +09:00
Syoyo Fujita
32af42c419 Work around for MSVC's annoying min/max macros. 2022-12-16 04:51:11 +09:00
Syoyo Fujita
13c2367ef9 Change VisitPrim visitor function signature. 2022-12-05 01:56:45 +09:00
Syoyo Fujita
f9445bfdab Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2022-12-03 20:15:57 +09:00
Syoyo Fujita
5f87dc1e17 Add feature to find Prim by prim_id
Add unit test for handle-allocator.
2022-12-02 22:39:35 +09:00
Syoyo Fujita
02e18aab62 Add helper method to compute absolute path and prim id for each Prim in Stage. 2022-12-02 05:41:08 +09:00
Syoyo Fujita
b7115806db Implement Stage::allocate_prim_id() 2022-12-02 02:04:03 +09:00
Syoyo Fujita
e94978e65e Pass absolute Prim path to the functor of VisitPrim. 2022-12-01 19:03:08 +09:00
Syoyo Fujita
98aa1fe163 [Tydra] Initial support of building Xform node hirarchy.
Take timecode and interpolation type argment to xformOps evaluation(no
timesamples support yet)
2022-12-01 02:34:46 +09:00
Syoyo Fujita
c7ce1039f4 Rename tydra_convert => tydra_api
Fix materialBinding and some builtin attribute is not handled when constructing Xform Prim.
Fix FindBoundMaterial fails to find Material in parent Prim.
2022-11-27 21:18:02 +09:00
Syoyo Fujita
f801722526 Implement Dictionary(CustomData) access API. 2022-11-25 21:31:36 +09:00
Syoyo Fujita
1a7acdd86d Add some Tydra utility functions. 2022-11-23 04:03:43 +09:00
Syoyo Fujita
5fe80aec11 Add OpenFBX to import FBX file(just added files. no actual FBX import possible yet)
Update api-tutorial.
2022-11-19 21:43:13 +09:00
Syoyo Fujita
fc0619c115 Construct PrimSpec tree from USD(for Composition. W.I.P.) 2022-11-19 04:59:59 +09:00
Syoyo Fujita
c208af66b1 Add some codebase for Prim composition. 2022-11-18 05:33:49 +09:00
Syoyo Fujita
0539d120c8 Add some utility functions. 2022-11-11 22:59:14 +09:00
Syoyo Fujita
e902256b5b Merge branch 'dev' of github.com:syoyo/tinyusdz into dev 2022-11-10 19:36:37 +09:00
Syoyo Fujita
e533e29884 Make Property custom false by default.
Return the first path for get_relationshipTarget() when Relationship contains PathVector(multiple paths).
2022-11-10 19:35:23 +09:00