Reducing Trigonometric Functions in Computer Graphics Algorithms
By
WithinReason
Master baker tier. Every paragraph earns its place on the tray.
Summary
The article argues for reducing trigonometric functions in computer graphics algorithms, advocating for more efficient mathematical approaches using vector operations, projections, and reflections. The author contends that trigonometry should be limited to data input and feeding larger algorithms, while core 3D rendering should use more optimized mathematical techniques. The piece reflects the author's experience and expertise in computer graphics, shaders, fractals, and the demoscene community.
Key quotes
· 4 pulledI think we should use less trigonometry in computer graphics.
These days I'm at a point where if I see some asin, acos, atan, sin, cos or tan in the middle of a 3D algorithm, I'll assume the code was written by an inexperienced programmer and that it needs review.
Trigonometry is convenient and necessary for data input and for feeding the larger algorithms.
As my understanding of projections, reflections, and vector operations improved over time, I experienced a growing unease every time I saw trigonometry at the core of 3D algorithms inside rendering engines.
You might also wanna read
Understanding the Geometric Foundations of Tangent Space and Normal Mapping in Computer Graphics
This article provides a deep dive into the geometric foundations of tangent space and normal mapping in computer graphics. It explains how t
GPU-Accelerated Distance Calculation for Cubic Bézier Curves
This technical article explores the mathematical and computational challenges of calculating distance fields to cubic Bézier curves on GPUs.
Understanding Anti-Aliasing Challenges in Signed Distance Functions
The article explores the complexities of anti-aliasing on signed distance functions (SDFs), highlighting common but often unclear or convolu
Rendering Realistic Skies and Planetary Atmospheres in Real-Time with Shaders
This article explores the technical and visual process of rendering realistic skies, sunsets, and planetary atmospheres in real-time using b
Exploring surfel-based global illumination with WebGPU on the open web
A technical blog post exploring the use of WebGPU to compute real-time global illumination using surfels (surface patches). The author inves
Implementing Colored Penumbra Shadow Effects in Unreal Engine 5
This article describes a technique for implementing "Colored Penumbra" or "Colored Shadow Terminator" effects in Unreal Engine 5. The author
