by Animats · 1w ago · 0 comments
- How do you do translucency? Depth sort and painter's algorithm in the CPU, order independent transparency in the GPU, or something else?
- How do are large scenes lit and shadowed without a cost of O(objects x lights)? This is where you tend to need access to a scene graph.
While a fun technical challenge, in games you just render translucency last and back to front. You can add some distortion when you render it by reading the beauty.
ThreeJS supports OIT but it costs a lot and unless you are doing specialty visualization, it isn't worth it: https://threejs.org/examples/?q=transp#webgpu_oit
> How do are large scenes lit and shadowed without a cost of O(objects x lights)?
I guess you could do clustered forward lighting. That can be added on top of this work. There is some work on that in ThreeJS.
I am proposing in this work to do light baking for GI, and then normal lights at run-time. I am not actually specifying how you do your GI bake (Ray Radiosity is the best engine in ThreeJS right now) or how you do your run-time lights.
Those are orthogonal to the design of this lighting pipeline.