Casually programming real time OpenCL raytracing in 1 day @ProjectPhysX
Casually programming real time OpenCL raytracing in 1 day  @ProjectPhysX
Uploaded July 2021 | Updated November 2026, 5 hours ago
After a total of 3 weeks programming, it can now raytrace fluid simulations. See here for a demo: youtu.be/UUYrWUpPQwY

This is a quick demo of my latest casual sunday project: Writing a raytracer in OpenCL without any external libraries, inspired by this awesome video from the YouTuber NamePointer: youtu.be/lKIytgt3KXM

It is surprisingly easy: From the camera, shoot a ray through every pixel. Reflect the ray off the first surfaces in its way, reflect the reflection 2 more times. Finaly when the reflected ray hits the skybox, mix all the colors to paint the original pixel with.
The GPU does this for all 2 Million pixels on the screen in parallel.

Because my raytracer is written in OpenCL, it runs on any OpenCL capable device (GPUs, CPUs, even my Samsung phone). No proprietary RTX hardware required.
Casually programming real time OpenCL raytracing in 1 dayBot - the evil Java program that automates your keyboard and mouseWhat happens when tiny dust particles in space collide?The History of PhysX3D [GRAVITY SIMULATION]FluidX3D [FLUID SIMULATION] 3.5 Million Particles through porous Media in Real TimeFun with SuperconductorsThe most realistic raindrop impact simulation ever done (physically accurate + raytracing)3 different GPUs, 1 CFD simulation - FluidX3D SLI-ing (Intel A770 + Intel B580 + Nvidia Titan Xp)SoundFFT - Vivaldi - The Four Seasons - Summer PrestoDroneEngine [QUADCOPTER SIMULATION] August Update: sensor fusion demoPhysX3D [GRAVITY SIMULATION] Early Universe SimulationBell 222 Helicopter in FluidX3D CFD - 10 Billion Cells, 71TB vizualized - 6.4 hours on 8x MI200 GPUs
Dr. Moritz Lehmann |

Casually programming real time OpenCL raytracing in 1 day

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER