Skip to content

How do i get the underlying interleaved buffer(view)? #350

Answered by donmccurdy
christjt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Because this project is primarily meant for enabling modifications to glTF data, it does de-interleave accessors during the loading process. This allows changes to individual accessors to be simpler and faster, rather than maintaining a strict buffer layout at each stage of the processing. Accessors can (optionally) be re-interleaved when writing back to a glTF file.

If you'd like to interleave the attributes without exporting the whole file, you can find example code for that here:

/**
* Pack a group of accessors into an interleaved buffer view. Appends accessor and buffer
* view definiti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@christjt
Comment options

Answer selected by christjt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants