CPU: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (2666 MHz)
Memory: 12288 MB
OS Version: Mac OS X 10.7.3 Darwin 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
For a while now, Second Life's deferred renderer has had a somewhat "toonish" looking specular model, as opposed to other platforms which try to go for more physically accurate looking models, such as blinn-phong and similar.
This feature changes the specular model to a technique called normalized blinn-phong. The specular model applies the usual blinn-phong term (assume NdotV to the power of n), multiplied by a normalization function of:
((n + 2) * (n + 4)) / (8 * PI * (powf(2, -n/2) + n))
Assume n is the specular exponent.
Gamma correction is also applied to the result to bring the visual results more in line with what you see in high end game engines such as Unreal Engine 3 and Frostbite 2, and stored in a lookup texture.
- Log in with normal viewer
- Enable Lighting and Shadows in the graphics preferences
- Visit http://maps.secondlife.com/secondlife/Hippo%20Hollow/155/110/23
- Look at the different spheres with different lighting conditions and shiny values applied
- Best viewed with sky set to "Midnight"
- Take screen shots showing the "old" shiny
- Log in with viewer with "new" normalized blinn-phong shiny
- Repeat the steps above, comparing the screenshots of the "old" shiny with the "new" shiny
- Compare the two under different lighting conditions. Click each light source to turn it on or off to do so, and set the sky to different presets.
- Bonus points: Check for content breakage due to the change in specular model.
Expected results: The new shiny should seem "softer" at low shiny, and both brighter and smaller at high shiny. Performance should not degrade when compared to a compiled vanilla viewer using viewer-release as the codebase. Performance should stay the same between the two.
Repository for these changes can be found here: https://bitbucket.org/Geenz/viewer-nbp
Note about tweaking the effect: Use the "RenderSpecularExponent" debug setting to tweak the maximum exponent for specular highlights. Note that you will need a higher exponent than most other specular models, typically somewhere in the 300 to 500 range.
- is a child of
STORM-1826 Test new shiny rendering
STORM-1830 Re-test new shiny rendering