-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image-Based Lighting #7051
Comments
For RGBM and octahedral projection, see: http://webglinsights.github.io/downloads/WebGL-Insights-Chapter-16.pdf For spherical harmonics, see: http://graphics.stanford.edu/papers/envmap/envmap.pdf |
For creating the environment maps: https://github.com/derkreature/IBLBaker |
This is a nice explanation of actually computing the coefficients for spherical harmonics: https://computergraphics.stackexchange.com/a/5001 And an example from Babylon of getting these coefficients from a cubemap: https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/HDR/babylon.cubemapToSphericalPolynomial.ts#L94 |
Oh, this is great @TimvanScherpenzeel ! Thanks for pointing that out. It'll be pretty useful to compare my implementation to theirs. I know I had some issues with artifacts from linear sampling and had to add a 2 pixel border to get around that, so I'm curious if they had to do the same thing. Additionally, this might be useful to mention in the glTF lights extension (KhronosGroup/glTF#1377). It's still a draft, and you can see they have this note in the spherical harmonics section:
So that might be a nice resource to mention there. |
Sample model we can use when implementing the glTF loading part: |
Roadmap for implementing IBL:
The text was updated successfully, but these errors were encountered: