/react-babylonjs-mern

React App to create a material (texture) to a 3D cuboid using BabylonJs on a Map region which provided by user.

Primary LanguageJavaScript

3D Cuboid using BabylonJs

image

How to use

  • select a region/area from the map by dragging.
  • click on Export button to download a .png file.
  • upload that image and click on upload
  • done

Clone this repo

git clone https://github.com/builtbysuraj/react-babylonjs-mern.git

Move to that folder and Install dependencies

cd react-babylonjs-mern

For running only client and use the application (make sure to create a ".env" file and store your Mapbox access token)

cd client && npm i
npm run dev

For running only server (make sure to create a ".env" file and store your mongoDB url)

cd server && npm i
npx nodemon