Uploaded April 2022 | Updated November 2026, 5 hours ago
Real time raytracing is done at 1920x1080 pixel resolution with 1-7 rays per pixel (1x reflection, 2x refraction).
In simulation I can easily change its direction or even turn it off. Interactive raytracing with 2x refraction is quite heavy on the GPU; the OpenCL CFD sim gets the remaining compute resources, making its speed change over time.
The simulation software used is FluidX3D, an OpenCL implementation of the lattice Boltzmann method. FluidX3D runs at peak hardware efficiency on the worlds fastest data-center GPUs (8799/5232 MLUPs/s on the Nvidia A100/V100 @ D3Q19 SRT FP32), on gaming GPUs and CPUs and it even runs my smartphone.
The rendering is done by FluidX3D as well, now with raytracing. Simulated light rays from the camera traverse the LBM lattice and check for intersections with the triangles that marching-cubes generates on-the-fly from the isovalues. Triangles never leave registers.
The 3D lattice that the LBM provides already is one of the ideal acceleration structures for raytracing. Any ray only has to check for possible intersections with iso-surface triangles contained within the traversed grid cells. This makes it - when the lattice is not too large - even run in real time on non-RTX GPUs.
FluidX3D is now built entirely on my open source OpenCL-Wrapper, reducing the entire code on the C++ side to about half. If you want to get into OpenCL yourself, look no further: github.com/ProjectPhysX/OpenCL-Wrapper
Raindrop simulations: doi.org/10.1186/s43591-021-00018-8
Volume-of-Fluid: doi.org/10.3390/computation10020021
Esoteric-Pull: doi.org/10.3390/computation10060092
FP32/FP16 mixed precision: researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats
FluidX3D: doi.org/10.15495/EPub_UBT_00005400
Timestamps:
00:00 downwad gravity
00:11 side gravity
00:14 upward gravity
00:20 side gravity
00:26 zero gravity
00:43 downwad gravity
00:46 side gravity
00:49 upward gravity
00:52 side gravity
00:54 zero gravity
01:00 downwad gravity
01:05 side gravity
01:13 upward gravity
01:24 side gravity
01:31 zero gravity
01:39 downwad gravity
01:43 side gravity
01:48 upward gravity
#FluidX3D #OpenCL #Raytracing #GPU #LBM
Real time raytracing is done at 1920x1080 pixel resolution with 1-7 rays per pixel (1x reflection, 2x refraction).
In simulation I can easily change its direction or even turn it off. Interactive raytracing with 2x refraction is quite heavy on the GPU; the OpenCL CFD sim gets the remaining compute resources, making its speed change over time.
The simulation software used is FluidX3D, an OpenCL implementation of the lattice Boltzmann method. FluidX3D runs at peak hardware efficiency on the worlds fastest data-center GPUs (8799/5232 MLUPs/s on the Nvidia A100/V100 @ D3Q19 SRT FP32), on gaming GPUs and CPUs and it even runs my smartphone.
The rendering is done by FluidX3D as well, now with raytracing. Simulated light rays from the camera traverse the LBM lattice and check for intersections with the triangles that marching-cubes generates on-the-fly from the isovalues. Triangles never leave registers.
The 3D lattice that the LBM provides already is one of the ideal acceleration structures for raytracing. Any ray only has to check for possible intersections with iso-surface triangles contained within the traversed grid cells. This makes it - when the lattice is not too large - even run in real time on non-RTX GPUs.
FluidX3D is now built entirely on my open source OpenCL-Wrapper, reducing the entire code on the C++ side to about half. If you want to get into OpenCL yourself, look no further: github.com/ProjectPhysX/OpenCL-Wrapper
Raindrop simulations: doi.org/10.1186/s43591-021-00018-8
Volume-of-Fluid: doi.org/10.3390/computation10020021
Esoteric-Pull: doi.org/10.3390/computation10060092
FP32/FP16 mixed precision: researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats
FluidX3D: doi.org/10.15495/EPub_UBT_00005400
Timestamps:
00:00 downwad gravity
00:11 side gravity
00:14 upward gravity
00:20 side gravity
00:26 zero gravity
00:43 downwad gravity
00:46 side gravity
00:49 upward gravity
00:52 side gravity
00:54 zero gravity
01:00 downwad gravity
01:05 side gravity
01:13 upward gravity
01:24 side gravity
01:31 zero gravity
01:39 downwad gravity
01:43 side gravity
01:48 upward gravity
#FluidX3D #OpenCL #Raytracing #GPU #LBM
![PhysX3D [GRAVITY SIMULATION] Osculating Orbits vs. Paths
Today I updated my osculating orbit function. For the internal calculation I changed from Euler angles to the more common angles used as orbital elements. I also added the calculation and visualization of the eccentric anomaly for both elliptic and hyperbolic orbits. With the ecentric anomaly I can paint the orbits so that the color is brightest behind each body and than gets dimmer, which lets one spot bodies on their orbits even without their names being displayed.
More information at: http://www.projectphysx.de
Music: Civil Twilight - Letters from the Sky PhysX3D [GRAVITY SIMULATION] Osculating Orbits vs. Paths](https://i.ytimg.com/vi/FCoBsC3Sols/mqdefault.jpg)

![PhysX3D [GRAVITY SIMULATION] Public Release Trailer
PhysX3D is a real time gravitational n-body simulation featuring the symplectic Velocity Verlet integrator, CPU multithreading, GPU acceleration for harnesting multi-teraflops graphics cards, and finally the most efficient 3D graphics engine ever written in Java, including full VR support.
Everything you see in the video (except for the reverse scene at 2:22) has been calculated and rendered in real time on a laptop.
Ive been working on PhysX3D for three years now, writing thousands of lines of source code in order to create the most efficient gravitational n-body simulation possible.
By the way, I am 19 years old.
Free download at http://www.projectphysx.de
Music: Thomas Bergersen - Final Frontier PhysX3D [GRAVITY SIMULATION] Public Release Trailer](https://i.ytimg.com/vi/GFzisvhtRS4/mqdefault.jpg)







