Skip to content

Conversation

@asundqui
Copy link
Contributor

Added Depth-of-Field rendering to SparkRenderer, controlled by two to parameters focalDistance (distance to focal plane) and apertureAngle (full view angle subtended by aperture / circle of confusion).

Added an examples/depth-of-field to showcase how to use it (including reasonable values).

Note that this is not a physically correct depth of field effect, but a trick with Gsplats where we can convolve it with a Gaussian equal in size to the circle of confusion at that projection plane. The result is fairly convincing and easy to integrate. Large focus blurs will incur overhead during rendering, so use judiciously.

Screen.Recording.2025-06-20.at.5.00.26.PM.mov

@asundqui asundqui self-assigned this Jun 21, 2025
@dmarcos dmarcos merged commit db1e880 into sparkjsdev:main Jun 21, 2025
2 checks passed
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.

2 participants