pablode / guc

glTF to USD converter with MaterialX support
Apache License 2.0
107 stars 6 forks source link

C++ Object Notation for guc? #26

Open coderextreme opened 4 months ago

coderextreme commented 4 months ago

I’m interested in converting JSON to C++ Object Notation (CPPON), such that JSON data can be included in C++ binaries without string literals.

I don’t have any examples of glTF myself and I’ve been relying on Khronos and Microsoft for their examples. I don’t know if I feel comfortable sharing my glTF CPPON examples, but I can share examples of X3D CPPON examples. I originally converted X3D documents to C++ to test X3D C++ SAI. Then I wrote a grammar for ANTLR4 for CPPON.

What I’m looking for is a good C++ API to convert glTF to. I have been working on my own interface for glTF, but it relies on examples, and is in no ways functional.

I have some experience with code-based skinning and converting Blender BVH export to X3D HAnim animation export. I would say I’m a glTF newbie.

if you have some C++ examples of building glTF or USD, that would be interesting for me.

coderextreme commented 4 months ago

Here’s an example of X3D CPPON:

I’m looking for similar C++ API for USD a glTF, so I can convert glTF to “apps”.

https://github.com/coderextreme/CPPON/blob/main/cplusplus/net/coderextreme/data/rubik.h

thanks