Search the Community
Showing results for tags 'gridmaterial'.
Found 3 results
Gunmage posted a topic in Questions & AnswersI am trying to make a 3d reference grid with a cube, and I would like to know if there is a way to start the gridMaterial's grid at one of the mesh vertices. By default it seems to start at the center of the face, and it is not quite what I need - if cube size is not a multiple of grid ratio, cube vertices are not grid points (like so - https://www.babylonjs-playground.com/#5S6MD#15). Is there a way to do this with gridMaterial, or should I explore other possibilities?
I'm not sure if this is intended or it just isn't able to, but the GridMaterial currently doesn't seem to support shadows. I've tried different methods, but with no luck. Using an example of the BabylonJS shadow tutorial moving the ground into a grid shows this problem clearly; https://www.babylonjs-playground.com/#Y5IZCF#2 It would be awesome if the GridMaterial could support this as it provides a efficient way to render a high scale grid performance wise.
I've been playing with creating a grid for a while now, and I found out the latest alpha provides a nice one. Love it, a performance I'm not able to create with mass-meshes or lines. But.. for this use-case I'm searching for a way to know the exact position within that grid, so I'm able to hover a active-tile mesh on it. As I'm trying to use the grid, as a real grid. The GridMaterial provides no actions as far as I could find for this and I was wondering, is there any other way to make this work that I just didn't think of? Thanks in advance! (BTW using OnIntersectionEnterTrigger errors on the grid) https://www.babylonjs-playground.com/#83YJIL#1