Skip to content

melbinjp/3d_modelview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

42 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

3D Model Viewer Pro

๐ŸŽฏ Professional 3D Model Viewer with Advanced Controls

A cutting-edge, production-ready 3D model viewer built with modern web technologies

License: MIT Version WebGL PWA

โœจ What's New in v2.0

  • ๐ŸŽจ Modern UI/UX: Complete interface redesign with glassmorphism effects
  • ๐Ÿš€ PWA Support: Install as a native app on any device
  • ๐ŸŽญ Post-Processing: Bloom effects and advanced rendering pipeline
  • ๐Ÿ“ฑ Mobile First: Optimized for touch devices with gesture controls
  • ๐Ÿ”„ Animation System: Full GLTF animation support with timeline controls
  • ๐Ÿ“Š Performance Metrics: Real-time FPS and model statistics
  • ๐ŸŒ Offline Mode: Works without internet connection
  • ๐ŸŽฏ Production Ready: Enterprise-grade code quality and architecture

๐ŸŒŸ Key Features

๐ŸŽฎ Interactive Experience

  • Multi-Format Support: GLB, GLTF, FBX, OBJ with drag & drop
  • Advanced Controls: Orbit, zoom, pan with smooth damping
  • Auto-Rotation: Configurable speed and direction
  • Camera Presets: Reset and fit-to-view functionality

๐ŸŽจ Visual Excellence

  • Dynamic Lighting: Ambient and directional light controls
  • Post-Processing: Bloom effects and tone mapping
  • Environment Options: Gradient, solid, and HDRI backgrounds
  • Shadow Mapping: High-quality real-time shadows

๐Ÿ“ฑ Cross-Platform

  • Responsive Design: Seamless experience on all devices
  • Touch Optimized: Native mobile gestures
  • PWA Ready: Install on home screen
  • Offline Capable: Service worker caching

๐Ÿ”ง Developer Friendly

  • Modern Architecture: ES6+ classes and modules
  • Performance Optimized: 60fps on desktop, 30fps on mobile
  • Error Handling: Comprehensive error boundaries
  • Extensible: Easy to customize and extend

๐Ÿš€ Quick Start

GitHub Pages Deployment

  1. Fork or clone this repository
  2. Push to your GitHub repository
  3. Enable GitHub Pages in repository settings
  4. Your 3D viewer is live at https://yourusername.github.io/repositoryname

Local Development

  1. Download or clone the repository
  2. Open index.html in a modern web browser
  3. Start loading and viewing 3D models!

No build process required! Everything works directly in the browser.

๐ŸŽฏ Usage Guide

Loading Models

  1. URL Method: Paste a direct link to your 3D model
  2. File Upload: Drag & drop or click to browse local files
  3. Supported Formats: .glb, .gltf, .fbx, .obj

Navigation Controls

  • Rotate: Left mouse button or single finger drag
  • Zoom: Mouse wheel or pinch gesture
  • Pan: Right mouse button or two finger drag
  • Reset: Use camera reset button in controls

Advanced Features

  • Lighting: Adjust ambient and directional lighting
  • Effects: Enable bloom and other post-processing
  • Animation: Control model animations if available
  • Export: Take high-quality screenshots

๐Ÿ“‹ Browser Support

Browser Version Status
Chrome 51+ โœ… Fully Supported
Firefox 51+ โœ… Fully Supported
Safari 10+ โœ… Fully Supported
Edge 79+ โœ… Fully Supported
Mobile WebGL โœ… Optimized

๐Ÿ—๏ธ Architecture

3d-model-viewer-pro/
โ”œโ”€โ”€ index.html          # Main HTML file
โ”œโ”€โ”€ styles.css          # Comprehensive styling
โ”œโ”€โ”€ script.js           # Core application logic
โ”œโ”€โ”€ manifest.json       # PWA configuration
โ”œโ”€โ”€ service-worker.js   # Offline functionality
โ”œโ”€โ”€ FEATURES.md         # Detailed feature list
โ”œโ”€โ”€ DEPLOYMENT.md       # Deployment guide
โ””โ”€โ”€ README.md           # This file

๐Ÿ”ง Configuration

Performance Settings

// Adjust quality settings in script.js
const QUALITY_SETTINGS = {
  LOW: { shadows: false, bloom: false, antialias: false },
  MEDIUM: { shadows: true, bloom: false, antialias: true },
  HIGH: { shadows: true, bloom: true, antialias: true }
};

Customization

/* Modify theme colors in styles.css */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

๐Ÿš€ GitHub Pages Deployment

Super Simple - No Build Required!

  1. Fork this repository or create your own
  2. Push your code to the main branch
  3. Go to Settings > Pages in your GitHub repository
  4. Select "Deploy from a branch" and choose "main"
  5. Your site is live! at https://yourusername.github.io/repositoryname

See DEPLOYMENT.md for other hosting options.

๐Ÿ“Š Performance

  • Initial Load: < 3 seconds
  • Model Loading: Depends on file size and network
  • Rendering: 60 FPS on desktop, 30 FPS on mobile
  • Memory Usage: Optimized for large models

๐Ÿค Contributing

We welcome contributions! Please see our contributing guidelines:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support

If you encounter any issues or have questions:

  • Open an issue on GitHub
  • Check the documentation
  • Review browser console for error messages

Made with โค๏ธ for the 3D web community

โญ Star this repo if you find it useful!

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •