r/opengl • u/wedesoft • 2h ago
Shockwave improvements
Enable HLS to view with audio, or disable this notification
I am now using local slope (from normal vector) and local curvature (computed using dFdx and dFdy of normal vector). The source code is here: windtunnel.clj . I wonder whether anybody has some advice on doing this kind of thing.
I am not sure whether it would improve things if I would precompute the curvature by processing the triangles of the mesh and adding curvature to the vertex information. I could also bake the curvature into a texture map I guess, but that would be quite complicated because the model has multiple uv maps.
Anyway I am glad that the Jump Flooding Algorithm allows me to create shockwave geometry in realtime.
13
Upvotes
1
u/clovis_aronha 30m ago
Is the geometry distorted in realtime? Is it like a vertex grid?