Code Monkey home page Code Monkey logo

Comments (5)

VZout avatar VZout commented on May 7, 2024 4

I'm doing some experimenting with including transparent objects in the GI. Maybe I can share the code at some point. But its not on the surfel+restir branch

from kajiya.

h3r2tic avatar h3r2tic commented on May 7, 2024

What is this "transparency" thing you speak of? It doesn't look like anything to me 🙈

cough

I'm afraid transparency will have to wait. It is notoriously difficult, and would touch just about every aspect of the renderer. Unless it's purely additive, even the most minimal version would require some sorting or an order-independent solution (because most scenes are not as well-behaved as yours), and probably some hooks into TAA so that it doesn't produce horrible amounts of ghosting.

And that's just for unlit stuff. It would likely need reflections -- that means ray-tracing from transparent surfaces. Mirror reflections might be okay (although expensive), while rough ones would be noisy since reflection denoising works on the g-buffer. Then transparent stuff needs to interact with reflection and diffuse global illumination rays (the voxel grid is only part of the fun; there's also screen rays that need to hit transparent surfaces). Those might need to trace additional rays towards lights too.

... and even this is still non-physical land; then one needs refractions and colored transmission too... Oh and there's issues with post-processing, e.g. motion blur and depth of field.


Yup, there are simple paths one can take first, but judging by your screenshot, you'd probably want at least reflections and tinted transmission 😅 If you are passionate about transparency and would like to engineer a robust solution (probably considering many of the above), then let's talk! If that sounds like a bit much, then we could go with your first option for now, and ignore transparent objects... I would like to get to transparency at some point, but I'm still re-engineering the global illumination solver, and it's rather tricky even when assuming everything is opaque. I also don't want to just start adding hacks, as many other renderers do when it comes to transparency.

from kajiya.

dtrebilco avatar dtrebilco commented on May 7, 2024

Thanks for taking the time to reply - I figured it was a long shot, but thought I would ask anyway in case it was in the roadmap and I got a suggestion of a branch to try.

I might be able to hack some solutions just for myself, with some effort.

The engine as it stands is already very impressive in both speed and quality - in our use case (besides transparency) it is beating UE5 Lumen.

from kajiya.

h3r2tic avatar h3r2tic commented on May 7, 2024

I might be able to hack some solutions just for myself, with some effort.

Give me a shout if you run into some trouble or need something clarified -- either here or on Discord!

The engine as it stands is already very impressive in both speed and quality - in our use case (besides transparency) it is beating UE5 Lumen.

Oh wow, that's... unexpected 😄 I'm very happy to hear that! 🥳

from kajiya.

SamuelTallet avatar SamuelTallet commented on May 7, 2024

gltf crate now supports KHR_materials_volume extension.
I hope one day kajiya will support translucent objects! 😀

from kajiya.

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.