Yağız Selek
All projects

Holographic Force Field · Case study

A transparent effect with a measurable cost.

An individual C++ and GLSL coursework project built on a teaching starter. I implemented the force-field effect and the benchmark around its rendering path.

Frame from the actual OpenGL force-field demo

A procedural surface

The effect renders an indexed sphere, combining a Fresnel rim, animated scanlines, and noise-warped shading. It renders back faces before front faces for this convex transparent shape. That is a scoped solution, not a general order-independent transparency technique.

A geometry bug, not a shader workaround

I corrected inward-facing triangle winding so the culling and draw order matched the geometry. This fixed the underlying face orientation instead of compensating by flipping the shader output.

Ten-second excerpt from the original project recording. The full demo and report are linked above.

Quality by distance

The Full variant uses additional 2D value-noise work in the fragment shader. Simple removes the smooth warping while keeping the main silhouette, scanlines, and transparency. Two distance thresholds keep the shader from rapidly switching around the boundary.

Measure the rendering path

The benchmark freezes the camera, disables VSync, warms up for 120 frames, and gathers 600 valid GL_TIME_ELAPSED samples around the two draw calls. That isolates the effect’s GPU work rather than treating whole-application FPS as the cost of the shader. The setup and limits are in the linked report.

What the GPU timing showed

Across eight alternating benchmark pairs on an RTX 4070 Laptop GPU, the mean of the per-run 5% trimmed GPU times was 0.03592 ms in Full and 0.02044 ms in Simple, about 43.1% lower. This measures only the two hologram draw calls in the fixed scene, not total frame time or FPS.

What I took from it

A quality setting is easier to reason about when it has a clear visual fallback and a narrowly scoped measurement. I would test the same visual trade-off against multiple screen coverages before generalizing the cost.

References

Implementation evidence