JUNE 3, 2012 16 COMMENTS
Spherical Gaussian apPRoximation for lighting calculation is not new to the graphic community[4][5][6][7][8] but its use has recently been adopted by the game developer community [1][2][3].Spherical Gaussian (SG) is a type of spherical radial basis function (SRBF) [8] which can be used to approximate spherical lobes with Gaussian-like function.This post will describe how SG can be use to approximate Blinn-Phong lighting, Phong lighting and Fresnel.
Why care about SG approximation ?In the context of realtime rendering for games, the SG approximation allows to save a few instructions when performing lighting calculations. For modern graphics cards, saving few ALU in a shader is not always beneficial, but for older hardware like one can find in the PS3, every GPU cycle counts. This is less true for XBOX360 GPU, which performs better with arithmetic instructions, though this optimization can still be beneficial. It can also be used to schedule instructions in a different (low loaded) pipe on SPUs to increase performance [2].
Part of the work presented here credits to Matthew Jones (from Criterion Games) [9].
The post talk about SG, but it is good to know that there is several different types of SRBF found in graphics papers.For completeness, I will talk quickly about SG and von Mises-Fisher (vMF) as this can be confusing.
SG definition can be found in [4]: where p ∈
新闻热点
疑难解答