What are the max allowable height, width, and depth values for MeshBuilder.createBox(...)?

The docs do not say. Number.MAX_SAFE_INTEGER seems to be too large as the mesh does not render.


Please provide an example. At least the usage…



Here is an example where it does not render.


It works but your camera is probably too close from the box

I also changed the pointlight position

Shouldn’t be too hard to figure out, just start from MAX_SAFE_INTEGER, then if it doesn’t render, check MAX_SAFE_INTEGER / 2, and keep on going like a binary search algorithm.

The box doesn’t render for me in this link either. In Firefox nor Chrome.