Deadline: May 26th (Thu) at 15:00pm
If you have not done the task00, do it first to set up the C++ graphics development environment.
Follow this document to submit the assignment, In a nutshell, before doing the assignment,
- make sure you synchronized the
main
branch of your local repository to that of remote repository. - make sure you created branch
task05
frommain
branch. - make sure you are currently in the
task05
branch (usegit branch -a
command).
Now you are ready to go!
- Build the code using cmake
- Run the code
- Take a screenshot image (looks like image at the top)
- Save the screenshot image overwriting
task05/problem1.png
Write some code (about 5 ~ 10 lines) around line #185
in shader.frag
to define compute the minimum distance to the cubic Bezier curve using the Sturm's method. The minimum distance can be found by computing the root of the quintic polynominal (i.e., 5th order polynominal). The polynominal here is the square of the distance differentiated by the parameter. Read the instruction in the shader.frag
for more information.
Save the screenshot image overwriting task05/problem2.png
After modify the code, push the code and submit a pull request.