r/opengl • • 15h ago

Fragmentshader-raycaster renders from quite a few years ago

Thumbnail gallery
37 Upvotes

Heyo!

Searched through my USB-sticks to find a fragmentshader-raycaster I made like at the end of the 2010s. The actual version, I was looking for, is nowhere to be found though, which likely means, it is (or was) on that one SSD, that seems bricked and refuses to boot, or do anything at all. ..Apparently SSDs can get damaged by laying around..

But not much is lost, iirc.

Those images are from different earlier versions, rendered just yesterday.

Those are mostly tests of different techniques - the usual suspects, like texture-materials, bump-maps, reflections (ofc), different shadows, fog, or blur.

And it was a whole lot of fun programming this by hand!

Lastly I'd like to ask: Which image causes brain-tickling the most to you?

Cheers


r/opengl • • 18h ago

Built a parametric V8 engine assembly inside a custom C++20 + OpenGL CAD/physics engine I wrote from scratch — runs offline on an Intel UHD iGPU

15 Upvotes

r/opengl • • 4h ago

using fragment shader as compute shader in GLES 2

1 Upvotes

This is just a concept I wanted to share and possibly receive feedback on. I have this idea to calculate rotations of things by passing a texture specifying the current animation frame, initial position, and rotation limits of each thing.

#version 100
precision float mediump;
uniform sampler2D RotHints;
varying mediump Coords;
void main(){
vec4 Hints = texture2D(RotHints,Coords);
Hints.g=Hints.g-Hints.b;
Hints.a=Hints.g*Hints.r+Hints.a;
gl_FragColor = Hints.a;
}

r/opengl • • 14h ago

Building an interactive 2D surveillance map with PyOpenGL, live video textures and dynamic camera visibility

1 Upvotes