I am really interested in achieving the effect seen in the first image below (I also want to replicate the opposite diagonal, but I can figure that out later). The second image shows a standard GridHelper
.
https://i.sstatic.net/iIQZO.png
Do you think it would be feasible to create this effect by adding another grid helper and rotating it 45 degrees along the y-axis?
After searching through the official documentation, I couldn't find any information on how to do this. So I assume there might be an alternative method. Does anyone have any suggestions on how to achieve this?
This is the code I used for the GridHelper
:
grid = new THREE.GridHelper(80, 15, 0x000000, 0x000000);
grid.position.y = -0.2;
scene.add(grid);
My intuition tells me that the solution might involve using EdgesGeometry
. However, I'm not completely certain about the correct approach due to:
EdgesGeometry( geometry, thresholdAngle )
Where the geometry
parameter needs to be a valid geometry object.
Is the GridHelper
considered a geometry object? You can review the official documentation here.
EDIT: For reference, here is a visual example demonstrating my current situation: codepen example.