Skip to content

ussue with join primitives #1220

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

You must be logged in to vote

When I run this script on the given files as-is, I get the following error:

Error: Requires >=2 Primitives, sharing the same Material and Mode, with compatible vertex attributes and indices.

That much is expected, since (for testing purposes) we're just merging two arbitrary primitives, and haven't checked that they're compatible.

It sounds like you are getting a different error though, and that is concerning ... how are you executing the code? I'm using Node.js v18.80.0 and running something like:

node ./join.js

If you're using a bundler or a build tool before running the code, that might be important to the error as well.

Also note that if you just want to merge whatever can be merged…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by donmccurdy
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