Skip to content

Lighting questions deliberately obfuscated or difficult? #106

Open
@drewlustro

Description

@drewlustro

I want to preface this by saying THANK YOU for this learning tool. I have a bachelors Computer Science from UC Berkeley, but never took graphics in college so it has been a great ride thus far. I appreciate the authors' work and efforts to make this a robust suite to learn about shaders.


That said, I've had serious trouble solving the lighting problems, particularly diffuse lighting, phong lighting, and so forth.

I feel that the instructions are decent for the provided code snippets, definition of uniforms provided, and outlining the problem's goal to me, the student.

However, the difference between the hints and guidance provided and what the actual answer is to the question is leaps and bounds beyond the scope of intuitive understanding. I feel I am not alone in this.

Issues pertaining to highly difficult light questions

  • It's never clear what processing belongs in the vertex shader vs. the fragment shader when the uniforms exist across both.
  • Tips and hints provided quite often make assumptions that you know some other fact about graphics programming or linear algebra in order to be useful, thus voiding the usefulness of the hints or at least reducing their value.
  • Even after hours of googling and parsing out different solutions, often written in other shader languages such as HLSL, I've found little success in translating their solutions to those acceptable by the shader-school problem
  • Upon succumbing to my frustrations, I looked at the accepted answer for the phong lighting in the repo and was shocked to see not only how far I was from the answer, but how unhelpful the question description was to supposedly arrive at said answer.

Issues with the system in general

  • Upon creating a shader with a syntax error, the entire system crashes and shader-school must be run from the command line again. shader-school should recover from compilation errors and not throw an unrecoverable exception on syntax error. I hate having to go back to my terminal, kill the process, re-run it, confirm Y the prompt, and then get a brand new browser window (have to close the old one, etc).
  • Shader compilation errors should persist (red in the bottom right), and the <div> should be wider. I barely have enough time to read that "mediump float is not compatble with const highp float on 0:15..." and then the error disappears.
  • shader-school should have a command-line option to avoid the (Y/n) prompt in the beginning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions