Skip to content

Plant Vision is an immersive 3D web application built with Three.js, allowing users to explore AYUSH-recognized medicinal plants in a virtual herbal garden. It includes interactive 3D navigation, Ayurveda quizzes, and detailed plant information for educational purposes. Developed as part of the Smart India Hackathon.

Notifications You must be signed in to change notification settings

ritwikmohanty/SIH-PlantVision

Repository files navigation

🌿 Plant Vision – Virtual Herbal Garden (3D Ayurvedic Explorer)

Plant Vision Banner

Plant Vision is an immersive 3D web experience that allows users to explore AYUSH-recognized medicinal plants in a virtual herbal garden. Built using React.js, Three.js, and React Three Fiber, this app offers educational interactivity and a serene, gamified learning experience about the power of Ayurveda.


🔮 Features

  • 🌱 Interactive 3D Herbal Garden
    Explore a fully rendered 3D garden using WebGL and React Three Fiber.

  • 🧠 Ayurveda Quiz Mode
    Test your knowledge about medicinal plants with a built-in quiz system.

  • 🎓 Educational Insights
    Click on each plant to view detailed information including its Ayurvedic uses and benefits.

  • 💻 Responsive User Interface
    Built with React for smooth and intuitive navigation across devices.

  • 🌐 Optimized 3D Performance
    Balanced performance and detail using optimized models and lazy loading.


🛠 Tech Stack

Layer Technologies
Frontend React.js
3D Engine Three.js, @react-three/fiber, @react-three/drei
Quiz Logic JavaScript / React State
UI Styling CSS (Responsive, Inbuilt)
Hosting Firebase / GitHub Pages (Optional)

🚀 Getting Started

Prerequisites

⚠️ IMPORTANT: Git LFS Setup Required

This project uses Git LFS (Large File Storage) to manage 3D model files (FBX and GLB). You must install and configure Git LFS before cloning or the models won't load properly.

Install Git LFS

macOS (using Homebrew):

brew install git-lfs
git lfs install

Windows (using Chocolatey):

choco install git-lfs
git lfs install

Linux (Ubuntu/Debian):

sudo apt-get install git-lfs
git lfs install

For other systems, visit: https://git-lfs.github.com/

1. Clone the Repository

git clone https://github.com/aryansanganti/plant-vision.git
cd plant-vision

2. Pull LFS Files

After cloning, download the actual 3D model files:

git lfs pull

This command downloads all the FBX and GLB files that are tracked by Git LFS.

3. Install Dependencies

npm install

4. Run the App Locally

npm run dev

Visit http://localhost:5173 to start exploring your virtual herbal garden.

🔍 Troubleshooting

Problem: Seeing errors like "Cannot find version number for FBX" or "not valid JSON"?

Solution: This means Git LFS files weren't downloaded. Run:

git lfs install
git lfs pull

Then restart the dev server.

📂 Folder Structure

plant-vision/
├── public/
│   ├── models/              # 3D models (GLB/FBX)
│   └── plant-vision-banner.png
├── src/
│   ├── components/          # Reusable components (Garden, Quiz, etc.)
│   ├── data/                # Plant metadata (name, uses, etc.)
│   ├── pages/               # Landing, Quiz, Info
│   ├── App.jsx
│   └── main.jsx
├── .env                     # Optional Firebase or Config Keys
├── vite.config.js
└── README.md

🎮 Controls & Experience Orbit Controls: Rotate, zoom and pan through the garden

Hover/Click: Interact with plants for details

Start Quiz: Learn & test your Ayurveda knowledge

🖼️ Screenshots Replace these with actual screenshots once deployed.

3D Garden View Quiz Feature

✅ Use Cases 🌿 Ayurvedic learning and awareness

🧪 College projects related to natural medicine & 3D UI

🎓 Educational gamification in health science

📈 Roadmap Add voice narration for plant descriptions

🤝 Contributing Got ideas or bugs? Contributions are welcome.

# Fork it
# Create a feature branch
# Commit and push
# Open a Pull Request

📄 License This project is licensed under the MIT License. See the LICENSE file for more information.

About

Plant Vision is an immersive 3D web application built with Three.js, allowing users to explore AYUSH-recognized medicinal plants in a virtual herbal garden. It includes interactive 3D navigation, Ayurveda quizzes, and detailed plant information for educational purposes. Developed as part of the Smart India Hackathon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •