skydave Posted July 6, 2012 Share Posted July 6, 2012 Hi, I have posted this question over at the sideffects forum but it seems for such technical questions odforce is the better place to go. So sorry for crossposting. My question is regarding the binary json format which was introduced with h12. Does anybody know what the packing means for the attribute data section? Seems the packing is specified as an uniform array where for 4 component vectors [3 1] means that packing is xyz xyz ... w w. I wonder how packing would look like for xyzwxyzw. Does anybody know it exactly? I would guess xyzwxyzw packing would be [4] and xxxyyyzzzwww would be [1 1 1 1] but it doesn't seem to work meaning houdini errors on loading... Does anybody know of some lightweight c++ code which is able to read/write json+houdinis binary json? I'm currently implementing it (basically porting code from the python reference implementation which ships with the software). Thanks, David Quote Link to comment Share on other sites More sharing options...
symek Posted July 6, 2012 Share Posted July 6, 2012 (edited) Sorry I can't address your question about packing, but as to json library, have you seen UT_JSONParser.h from HDK? It's a header-only binary-jason parser provided specially for third-party usage without consuming a license. I agree though some specialized open sourced tiny bjson parser (possibly headers only) would be handy. I specially like picojson.h for handy json handling, but I haven't looked how difficult would be to extent it for bjson. Edited July 6, 2012 by SYmek Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.