Jump to content

questions regarding new houdini geo/bgeo file format


Recommended Posts

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

Link to comment
Share on other sites

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 by SYmek
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...