jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

How to build 3D grid [ 10- 10 ] with racks on it #101

Closed molchanov1983 closed 2 years ago

molchanov1983 commented 2 years ago

How to build 3D grid ? How to add rack inside grid?

molchanov1983 commented 2 years ago

Screenshot_1

jnsmalm commented 2 years ago

Use createPlane https://api.pixi3d.org/classes/Mesh3D.html#createPlane to create the grid and apply a texture to it.

material.baseTexture = PIXI.Texture.from(...)

Use createCube https://api.pixi3d.org/classes/Mesh3D.html#createCube to create the boxes.