babylonjs - How to create a grid in WebGL with Babylon.js? -


i newbie babylon.js , webgl. want create grid example 3 x 3 grid , place objects in cells. also, want know in cell object present if there one.

update :

i want end cube has 3 rows 3 columns on each face. can create tiled plane each face won't know contents in each cell. there way ?

can guide me doing ?

thanks !!

so it's clearer - babylon.js used render 3x3 grid. simplest way create grid item , store 1x1x1 boxes in it. way big cube, still consist of smaller items.

i have created simple playground demo started - http://www.babylonjs-playground.com/#2cfami

this, of course, should optimized , adjusted usecase, simple way create 3x3x3 grid boxes in different colors.

i hope helps!


Comments