Print at Dec 16, 2025, 3:53:56 AM

Posted by Daniels118 at Dec 7, 2023, 10:23:21 AM
Re: 3D rendering using GPU cores
@Puybaret
Thanks for having pointed it out, I wrongly assumed that it uses a DLL like Yafaray does.

About porting java code under TornadoVM, I ask myself how much easy could it be. From a first look it seems that it's easy to port pieces of code that already looks like code that should run on a GPU (such as kernel operations), so I wonder how much of SunFlow is affine to this porting, considering that it has been designed to run on a CPU and may have just few routines that match the requirement.

A relatively easy improvement could be to not change SunFlow at all, but to implement an additional denoising step that would allow to have smooth images without having to render at larger resolution than required just to shrink them back to destroy the scratches. This could be applied after the rendering made with any engine, so the denoising code can be shared for both SunFlow and YafaRay. However, to reach the state of art in denoising algorithms, the render engine should be modified to output not just the pixel colors, but also the normal vectors of the rendered surfaces.

By the way I also wonder if anyone is going to try this integration.