-
Notifications
You must be signed in to change notification settings - Fork 27
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
Renderer ignores more than >2nd band of spherical harmonics illumination #134
Comments
The idea is that inexperienced users use use
For me, there are several options to prevent your accidental miss usage:
My preference would be 1, 3, or 4, but I am open to change my mind if you have a strong preference. |
I would never dare to access any shader class, since I don't understand what's going on (expect when there is a need for it, e.g. to write a CVPR2020 paper with specular albedo maps). As an unexperienced user, I of course only access the beautiful I however ran into this issue: So I wrote the following little script that renders a face using more and more bands (attached) I would suggest to add a guard for |
Oh I see. Now it is clear where you run into the problem. Thank you for clarifying the situation that you discovered. It is indeed unnescessary to limit the SH coefficients the way the shader does it if we provide the additional nescessary coeffients in I agree that guarding the |
Our renderer ignores everything beyond the second band of spherical harmonics illumination.
Other parts of the framework support more bands.
Adding more bands to the renderer would need some new code.
This line of code however let's the user in the dark about the parameters being cut and ignored...
Wasted quite a bit of time on this and would honestly prefer if the code would throw an error if the renderer is called with more parameters than supported.
scalismo-faces/src/main/scala/scalismo/faces/render/PixelShaders.scala
Line 154 in 25ae368
I'm happy to implement a change but would prefer to hear first what people think?
The text was updated successfully, but these errors were encountered: