Uploaded July 2021 | Updated November 2026, 5 hours ago
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.
I implemented reflection as well as transmission with Snell's law.
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.
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.
I implemented reflection as well as transmission with Snell's law.
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.


![PhysX3D [GRAVITY SIMULATION] Stereoscopic 3D Graphics Preview
Ich habe in meine hocheffiziente Java-Grafikausgabe stereoskopisches 3D Rendering integriert. Jeder Frame wird dabei aus zwei leicht unterschiedlichen Kameraperspektiven berechnet, was in Sachen Framerate etwa doppelt so lange dauert, wie das Rendern eines normalen 2D -Frames. Beide Bilder werden nebeneinander auf dem Display ausgegeben. Der Effekt ist wirklich atemberaubend, gerade eben bei so dreidimensionalen Dingen, wie den Umlaufbahnen von Planeten, Monden und Asteroiden. Und weil ich alles selbst programmiert habe, kann ich einstellen, wie weit die Kameras auseinander sind, also wie stark der 3D-Effekt ist, und wie weit die beiden Frames von einander verschoben sind, d.h. wie weit das Bild aus der Displayebene herauskommt oder wie tief es im Display erscheint.
Mehr Informationen auf: http://www.projectphysx.de
Song: Disfigure - Blank [NCS Release] PhysX3D [GRAVITY SIMULATION] Stereoscopic 3D Graphics Preview](https://i.ytimg.com/vi/N9gWOj8UVTU/mqdefault.jpg)




![PhysX3D [GRAVITY SIMULATION] Portraits of the Planets
Es wurde wirklich Zeit, die Rotation von Himmelskörpern in PhysX3D einzubauen. Die dazu notwendigen Daten für die Planeten unseres Sonnensystems zu bekommen stellte sich als Herausforderung heraus. Die Inklination der Rotationsachse und die Rotationsperiode zu finden war leicht, aber um die Rotationsachse korrekt definieren zu können, wird noch einen weiterer Winkel benötigt: die Rektaszension.
Außerdem hat Saturn seine charakteristischen Ringe bekommen.
Mehr Informationen auf: http://www.projectphysx.de
Musik: John Murphy - Sunshine (Adagio in d Minor) PhysX3D [GRAVITY SIMULATION] Portraits of the Planets](https://i.ytimg.com/vi/O1cLkJP2nfk/mqdefault.jpg)


