Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for FBX binary tokenization of arrays of type 'c' #2326

Merged
merged 4 commits into from
Feb 8, 2019

Conversation

MalcolmTyrrell
Copy link
Contributor

This fixes issue #2034 and allows the tokenizer to handle arrays of type 'c'.

We encountered some FBXs which used this type of array and therefore could be loaded. I believe the FBXs were generated from a photogrammetry application called "RealityCapture".

It seems the array is used to carry a thumbnail. In the wild, we've only seen compressed arrays but I synthetically generated an uncompressed array to determine the correct stride value to use in that case.

I've included some synthetically generated FBXs which carry arrays of this type. (These are in a recent FBX version, but assimp can load them successfully.)

Please note that this commit only addresses the tokenization problem. The files load, but no attempt is made to interpret the data.
db.zip

@kimkulling kimkulling merged commit fadfaf8 into assimp:master Feb 8, 2019
@kimkulling
Copy link
Member

Merged, thanks a lot for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants