PBR Texture Editor and Viewer is a web application that enables users to edit and visualize Physically-Based Rendering (PBR) textures in real-time on a 3D model. This tool is designed to streamline the process of reviewing and adjusting textures without the need for complex 3D software like Blender.
- Real-Time 3D Preview: Visualize texture changes instantly on a 3D model.
- PBR Texture Editing: Edit essential PBR maps, including:
- Albedo: Adjust base color and saturation.
- Normal: Modify intensity and invert axes for better surface detail.
- Roughness: Control surface reflectivity.
- Metalness: Adjust the metal-like properties of the surface.
- Occlusion: Enhance shading and depth perception.
- Displacement: Modify height/displacement effects for realistic surface textures.
- Texture Import and Export: Load custom textures and save your work.
- Texture Pack Selector: Quickly apply pre-set textures for various materials.
- Frontend: HTML, CSS, JavaScript
- 3D Rendering: WebGL (via frameworks/libraries like
Three.jsif applicable) - UI Components: dat.GUI for user controls and editing
Check out the live demo here.
- Upload Your Textures: Use the load buttons to import textures for Albedo, Normal, Roughness, Metalness, Occlusion, and Displacement maps.
- Edit Textures: Modify properties using the provided sliders and color pickers.
- Preview in 3D: See real-time updates on the 3D model.
- Save Your Work: Export your edited textures for further use in 3D projects.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/j03rul4nd/EditorPBR.git
-
Navigate to the project directory:
cd pbr-texture-editor -
Install dependencies: Ensure you have Node.js installed. Run the following command to install the necessary packages:
npm install
-
Start the development server: Launch the application using Vite's development server:
npm run dev
-
Open in your browser: After running the development server, you should see a local address, typically
http://localhost:5173/, where you can access the app. Open this URL in your preferred web browser.
pbr-texture-editor/
│
├── index.html # Main HTML structure
├── style.css # Custom styles
├── main.js # Core JavaScript logic for texture handling
├── dat.gui.js # External library for UI controls
├── assets/ # Folder for storing icons and images
│ ├── icon_bggenerator.png
│ └── HERO_BBR_TEXTURES.png
└── README.md # Project documentationThe app is designed with accessibility in mind:
- ARIA labels and roles ensure screen reader compatibility.
- Responsive design adapts to various screen sizes for better user experience.
This project includes essential meta tags for SEO, such as:
- Description: For search engine visibility.
- Open Graph Protocol: Enhanced social media previews.
- Twitter Card: Customized card for Twitter sharing.
This project is licensed under the MIT License.
Joel Benitez
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
- Icons by FontAwesome
- UI components by dat.GUI
Thank you for checking out PBR Texture Editor and Viewer! Enjoy seamless texture editing and visualization directly in your browser.
