Giter VIP home page Giter VIP logo

3d-model-viewer's Introduction

3D Model Viewer Project

Description

This project is a React application that enables users to view 3D models in the browser. It uses three.js and @react-three/fiber for rendering 3D content. Users can upload 3D models and textures, which are then displayed in an interactive viewer with orbit controls for easy manipulation. The application supports .glb and .gltf formats for models and .jpg, .png, .webp for textures.

Features

  • Upload 3D models and textures via a simple, user-friendly interface.
  • View uploaded 3D models in an interactive environment with orbit controls.
  • Dynamically apply textures to models.
  • Efficient loading and rendering of 3D models using DRACO compression.

Installation

  1. Clone the repository:
git clone https://github.com/jwmik123/3d-model-viewer.git
  1. Navigate to the project directory:
cd 3d-model-viewer
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The application will be available at http://localhost:5173.

Usage

  • Uploading a Model and Texture:
    • Click on the upload areas to select and upload a 3D model and its texture.
    • Supported model formats: .glb, .gltf
    • Supported texture formats: .jpg, .png, .webp
  • Viewing the Model:
    • Once uploaded, the model will be displayed in the viewer.
    • Use the mouse to orbit, zoom, and pan around the model.

Technologies Used

  • React
  • Three.js
  • @react-three/fiber
  • @react-three/drei

Contribution

Contributions are welcome! If you have any improvements or feature suggestions, please open an issue or submit a pull request.

License

This project is open source and available under the MIT License.

3d-model-viewer's People

Contributors

jwmik123 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.