Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 2.33 KB

README.md

File metadata and controls

61 lines (45 loc) · 2.33 KB

Nebula Geometry Viewer

The Nebula Geometry Viewer is a 3D visualization tool designed to inspect geometries created for the Nebula electron-matter interaction simulator. This static web application, built with React and Three.js Fiber, allows users to load and explore .tri files in the Nebula geometry format.

Nebula Geometry Viewer Screenshot

Features

  • 3D Model Visualization: Load Nebula .tri files and visualize the 3D models.
  • Material Visibility: Adjust the visibility of different materials within the model.
  • Clipping Planes: Control clipping planes to inspect the interior of the model.
  • Wireframe and Grid Display: Show wireframe and x-y-grid for better spatial understanding.
  • Shading Options: Change shading to better visualize rough surfaces.

Installation

  1. Clone the repository:
    git clone https://github.com/maxbarnikol/nebula-viewer.git
  2. Navigate to the project directory:
    cd nebula-viewer
  3. Install dependencies:
    npm install
  4. Start the application:
    npm run dev

Usage

  • Load .tri files to begin visualizing the geometry.
  • Use the interface to adjust material visibility and clipping planes.
  • Toggle wireframe and grid views for enhanced visualization.
  • Experiment with different shading options to highlight surface details.

To quickly test the viewer, you can use the sample .tri file provided by Nebula:

Online Viewer

You can use a deployed version of the viewer at this link.

Resources

Acknowledgments

The code for this project was largely generated using Claude and GPT-4 models with the help of the awesome Cursor IDE.

We would like to acknowledge:

  • The authors and contributors of the Nebula simulator
  • The developers of various packages used in this project