-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This gets my tree cropped and displayed. This raise a new issue. |
Beta Was this translation helpful? Give feedback.
-
Hello,
The shorter answer is that you need to create your custom material/shader. If you give me a few days maybe I have the time to create something. For the black background in textures, try: treeMaterial.alphaMode = "blend" |
Beta Was this translation helpful? Give feedback.
-
Just wanted to let you know that Pixi3D now supports sprites in 3D, which may be a good fit for your game if you are still interested. Sprites in 3D works just like regular PixiJS 2D sprites, but in 3D space. It's not yet released (will soon), but if you want you can build it yourself.
You will find pixi3d.js and pixi3d.min.js in the dist folder. If you want to see an example of how to use the sprites you can check https://github.com/jnsmalm/pixi3d/blob/develop/examples/src/sprites.js Here is some random performance results: Mac M1 iPhone 12 Old weak android |
Beta Was this translation helpful? Give feedback.
Hello,
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.
You need to create your own material/shader as explained above.
This requires batching the sprites to reduce the number of draw calls. StandardMaterial does support instancing, but not when rendering di…