Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ellipsoids shape for volumetric primitives #1464

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Speierers
Copy link
Member

@Speierers Speierers commented Jan 22, 2025

This PR adds support for two new shapes in Mitsuba that can be used to efficiently render volumetric primitives (e.g. 3D Gaussians): ellipsoids and ellipsoidsmesh. Those shapes defines a point cloud of anisotropic ellipsoid primitives
using specified centers, scales, and quaternions. The former employs a closed-form ray-intersection formula with backface culling while the later uses a mesh-based representation to leverage hardware acceleration ray-tracing.

This PR also provides volprim_rf_basic, an example integrator that renders the set of ellipsoids as a radiance field, similar to 3D Gaussian splatting. The more advanced integrators described in the Don't Splat Your Gaussian paper as well as example scripts will be open-sourced in a seperate repository.

Other contributions included in this PR:

  • Add support for Shape::eval_attribute_X which returns a dynamic array of attributes
  • Add the ParamsFlag::ReadOnly
  • Add mitsuba.testing.RenderingRegressionTest for easily create regression tests similar to test_render.py
  • Add the infrastruture to support per-shape backface-culling (currently only used for the ellipsoidsmesh shape.

@Speierers Speierers marked this pull request as ready for review January 23, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant