Skip to content

Beginner questions #44

Answered by jnsmalm
paganaye asked this question in Q&A
Aug 31, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hello,

  1. Unfortunatly the StandardMaterial doesn't support spritesheets right now, I would like to add that but didn't have the time yet. Either you need to have your image in correct size (not in a spritesheet) or you have to create your own material (which would not be that difficult if you know a bit about how shaders work.) You can check the simple example at https://github.com/jnsmalm/pixi3d/blob/develop/examples/src/color-material.js to understand how to create your own material.

  2. You need to create your own material/shader as explained above.

  3. This requires batching the sprites to reduce the number of draw calls. StandardMaterial does support instancing, but not when rendering di…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@paganaye
Comment options

@jnsmalm
Comment options

Answer selected by paganaye
Comment options

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