Giter Club home page Giter Club logo

Comments (4)

turanszkij avatar turanszkij commented on August 16, 2024

Unfortunately that is a side effect of voxelization. As you said, smaller voxel size can reduce this, but it should be infinitely small to completely avoid it which is not possible prectically. One other thing that would help it is anisotropic voxelization (voxelizing in multiple directions instead of just one). I'm not sure that I will implement it anytime soon though.

from wickedengine.

turanszkij avatar turanszkij commented on August 16, 2024

Additionally to quality improvements, it would be nice to achieve performance improvements as well with this technique. This stays at low priority feature request for now.

from wickedengine.

Nathan-Franck avatar Nathan-Franck commented on August 16, 2024

I tried my hand at anisotropic voxelization like 3 years ago and it gave me PTSD 😬 It's really hard to blend the different directional volumes into the same ray algorithm. If you don't do it right you end up with gaps in your geometry, especially around corners.

I ended up trying to port an antialiased line rasterization algorithm to work with raystepping. Then tried to generify it to work with elongated cell divisions. It was A) a nightmare to program and B) made rounded objects look like weird slicey messes. Though boxes looked fine and it prevented light bleed that way.

This was me having fun with voxelGI before I went crazy https://www.youtube.com/watch?v=PszzatVSnys

from wickedengine.

turanszkij avatar turanszkij commented on August 16, 2024

I am already getting a headach from these just when thinking about it. I was thinking just taking a single sample from aniso voxelization that is determined from the dominant ray direction would be enough, but I guess there could be a lot of corner cases.
I can imagine that the DDA line algorithm could be interesting to try, but probably too slow. And not sure how to handle sampling between two mip levels with it.
Thanks for dropping by, and nice video!

from wickedengine.

Related Issues (20)

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.