Grids
Source
Copying and pasting? We've got you covered! You can find the full source code of this tutorial here.
📄 Adding Fancy Grids
In this tutorial you'll learn how to add a fancy grid to your scene. It's super easy and will make your app look much more professional!
Why a grid?
Grids are very common in 3D apps, and it's a great way to have a reference point for your users to navigate around, even when there are no visible objects around.
🖖 Importing our Libraries
First things first, let's install all necessary dependencies to make this example work:
import * as THREE from "three";
import Stats from "stats.js";
import * as BUI from "@thatopen/ui";
// You have to import * as OBC from "@thatopen/components"
import * as OBC from "../..";