Apply cubemap texture on cube Mesh #11
-
Hey 👋 I am not very experienced with 3D so sorry if this is a bad question, but is it possible to apply a cubemap texture onto a cube mesh? Or to create a material from a cubemap to pass to Anyways, thanks for building this :). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello! Yes, this is possible to do. You need to create a new material and reference that when creating the cube mesh. This is actually exactly how the skybox is implemented. Have a look at https://github.com/jnsmalm/pixi3d/tree/develop/src/skybox and let me know if you are not sure about what to do. |
Beta Was this translation helpful? Give feedback.
-
@jnsmalm can we also do this with standard material? something like this? Cube is still black for me.
|
Beta Was this translation helpful? Give feedback.
Hello!
Yes, this is possible to do. You need to create a new material and reference that when creating the cube mesh. This is actually exactly how the skybox is implemented. Have a look at https://github.com/jnsmalm/pixi3d/tree/develop/src/skybox and let me know if you are not sure about what to do.