Giter Site home page Giter Site logo

3d-extrusion's Introduction

Babylon.js Interactive Scene

Welcome to the Babylon.js Interactive Scene! This project demonstrates an interactive 3D scene using the powerful Babylon.js framework combined with React and Next.js.

Features

  • Draw Polygons: Use the "Draw" button to draw polygons on the ground. Left-click to place points, and right-click to complete the polygon.
  • Move Vertices: Enable vertex manipulation by clicking the "Move Vertices" button. Once active, left-click and drag on a vertex to move it.
  • Move Mesh: To move the entire mesh, click the "Move" button and drag the mesh in the 3D space.
  • Extrude Mesh: Extrude the drawn polygon into a 3D shape by clicking the "Extrude" button. Left-click to perform the extrusion.

How to Use

  1. Install the required dependencies using npm or yarn:
npm install
# or
yarn
  1. Start the development server:
npm run dev
# or
yarn dev
  1. Open your browser and navigate to http://localhost:3000 to view the Babylon.js scene.

Interacting with the Scene

  • Left-click on the ground to place points and draw a polygon. Right-click to complete the polygon.
  • To extrude the polygon into a 3D shape, click the "Extrude" button, and left-click on the mesh to perform the extrusion.
  • Activate the "Move" button to move the entire mesh by left-clicking and dragging it in the 3D space. NOTE: The mesh can be moved only after the extrusion is complete.
  • Activate vertex manipulation by clicking the "Move Vertices" button. Left-click and drag on a vertex to move it.

Technologies Used

  • Babylon.js: A powerful 3D game engine and framework for web development.
  • React: A JavaScript library for building user interfaces.
  • Next.js: A framework for server-rendered React applications.

3d-extrusion's People

Contributors

codevijay53 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.