Skip to content

Separating model into voxels #695

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

You must be logged in to vote

Hi @raducostica! I think there are a few possible answers to this, none of which are wrong, but have advantages and disadvantages. The main thing to keep in mind is that each mesh primitive is, usually, going to become its own "draw call" in three.js. There are ways to prevent that (instancing, merging) but they'll require more work in three.js than just loading the model normally. Having a lot of draw calls will make your application slower — often you'd aim for <100 draw calls total for something that runs on mobile, or maybe <1000 on a faster device, or if you don't care about framerate so much. Obviously some voxel scenes can have way more than 100 voxels, so making each voxel a primi…

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