Giter VIP home page Giter VIP logo

diff-gaussian-rasterization-dev's Introduction

Differential Gaussian Rasterization

NOTE: this is a modified version to support depth & alpha rendering (both forward and backward) and mode depth (without backward for now) from the original repository.

In addition, a floater selection function is added:

def markFloater(self, positions, surface):
    # Mark points that are floating (i.e. not on the surface) with a boolean
    with torch.no_grad():
        raster_settings = self.raster_settings
        floater = _C.mark_floater(
            positions,
            surface, 
            raster_settings.viewmatrix)

The example definition of mode depth is here: [SparseGS]https://arxiv.org/abs/2312.00206

rendered_image, radii, depth, alpha, mode_depth = rasterizer(
    means3D = means3D,
    means2D = means2D,
    shs = shs,
    colors_precomp = colors_precomp,
    opacities = opacity,
    scales = scales,
    rotations = rotations,
    cov3D_precomp = cov3D_precomp)

The example use of floater selection is:

renderer = GaussianRasterizer(raster_settings=settings)
_, _, _, _, mode_depth = renderer(**render_var)
floater_mask = renderer.markFloater(render_var['means3D'], mode_depth) # will not check the shape of surface!
render_var['means3D'] = params['means3D'][~floater_mask]

Used as the rasterization engine for the paper "3D Gaussian Splatting for Real-Time Rendering of Radiance Fields". If you can make use of it in your own research, please be so kind to cite us.

BibTeX

@Article{kerbl3Dgaussians,
      author       = {Kerbl, Bernhard and Kopanas, Georgios and Leimk{\"u}hler, Thomas and Drettakis, George},
      title        = {3D Gaussian Splatting for Real-Time Radiance Field Rendering},
      journal      = {ACM Transactions on Graphics},
      number       = {4},
      volume       = {42},
      month        = {July},
      year         = {2023},
      url          = {https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/}
}

diff-gaussian-rasterization-dev's People

Contributors

ashawkey avatar loping151 avatar skhu101 avatar snosixtyboo avatar

Stargazers

 avatar Franklin Yang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.