Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Working on a lightmapper directly inside three.js, will be most useful for static scenes like archviz. Still need to improve the blotching in the darker areas, will release it once it's done ✌️

11,279 Aufrufe • vor 25 Tagen •via X (Twitter)

21 Kommentare

Profilbild von Cody Bennett
Cody Bennettvor 25 Tagen

You could try some old-school radiosity methods or finite-element method which are not noisy. Radiance Cascades is the latest there and will improve over SVGF for responsiveness. Only issue is that you can't directly observe UV-space probes for specular.

Profilbild von Ben Houston
Ben Houstonvor 25 Tagen

Hey @marco_fugaro I just tried to contribute a LightMapper to ThreeJS, it is here. Could you see how it compares to what you have? If you share your code I could try to combine the efforts to make this PR better?

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

hey, that's great to have! I didn't see that. I guess the difference is that you are using an existing three.js indirect diffuse algorithm, and just doing the baking part. In my example instead I am building a BVH, shooting some rays and using the lightmap itself as a radiance cache. Then I have some À-trous denoise + upsample passes to smooth it all out. I'll share it open source once I am done so you can improve the three.js implementation, for example I had to remove dilation to get rid of the seams.

Profilbild von visual swim
visual swimvor 25 Tagen

would love to try this in the arch viz app we are using in our practice one day

Profilbild von Jack
Jackvor 25 Tagen

a lightmapper inside three.js would be super handy

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

I just found out there is already a PR for it, but it uses a different indirect lighting algorithm than mine

Profilbild von Frederik De Wilde
Frederik De Wildevor 25 Tagen

Cool!

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

😊

Profilbild von Sam
Samvor 25 Tagen

this looks super promising for archviz stuff. how heavy is the bake time for a mid-size scene?

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

will try that next!

Profilbild von Jiří Coufal
Jiří Coufalvor 25 Tagen

nice work man. How is the performance on older computers?

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

60fps on an old Mac M1, there is really no work being done once it's done baking, just reading from a texture

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

but yes as you can see in the video, in the rebake part there are some expensive parts, but it only takes a couple of seconds

Profilbild von anish
anishvor 25 Tagen

a lightmapper running inside three.js for archviz scenes is a solid idea. is the blotching in the dark areas coming from low sample counts or from the denoise step?

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

yes low samples, I am trying to keep it fast

Profilbild von Lucas
Lucasvor 25 Tagen

Beautiful! Makes such a difference Will you be baking light probes for dynamic objects?

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

Thanks! That's a possible road for dynamic objects, yes

Profilbild von Nikolay Strekalovski
Nikolay Strekalovskivor 25 Tagen

Thats so cool that the baking happens almost instantly👍👍

Profilbild von Marco Fugaro
Marco Fugarovor 25 Tagen

yess, will see if I can speed it up more

Profilbild von Robert Built
Robert Builtvor 25 Tagen

following this one. looking nice

Profilbild von EX3D
EX3Dvor 25 Tagen

Nice! I have the non technical, silly version of that in my app.

Ähnliche Videos