COMP4610/COMP8610 2024 S1
Submission Template and Marking Criteria
======== For Computer Lab Homework Assignment #1 ===========
Hw1 Submission Requirement and Marking Criteria
Task 1: C/C++ Programming Basics (10 marks)
· Get yourself familiar with C/C++ programming.
· Successfully compile and run the code in example_project folder.
· Complete Task-2.5 to implement the insideTriangle function in task1.cpp, put screenshots of your code and the output in the terminal in your report. (10 marks)
Task 2: OBJ Mesh basics (10 marks)
· Visualize the provided mesh with MeshLab. Put a screenshot of the mesh with color in your report.
· Create the house mesh according to the requirements and save the mesh file as house.obj in the model folder. (10 marks) HINT: The size of your mesh should be roughly around 5 to fit the camera view.
Task 3: Spatial Transformations for Graphics Rendering (40 marks)
· Implement the functions get_model_matrix in task3.cpp and draw_circle in rasterizer.cpp. (20 marks) Put a screenshot of the draw_circle function and briefly explain how you implement the draw_circle function in your report. (5 marks)
· Compile your code and run by ./task3 -r 30 house.png, you should get two images circle.png and house.png under the build folder. Put them in your report. (5 marks)
· Implement the look_at function and put a screenshot of your code in the report. (10 marks) Move the camera to a new location (10, 10, 10), and put a screenshot of the rendered house.
Figure: Expected outputs.
Task 4: Spatial Transformations (40 marks)
· Please put your answer to task-4.1 (10 marks) and task-4.2 (10 marks) in your report.
· Please implement the create_dog_mesh function to create a simple dog mesh with transformations. Run the code, a dot.obj mesh will be saved in your build folder, put it in the model folder and put a screenshot of the rendered dog in your report. (20 marks)
Possible additional penalties:
· Failed to remove intermediate files. (5 marks)
· Uploaded file is corrupted. (5 marks)
· Code cannot be successfully compiled. (5 marks)
· Late submission. (as per ANU rule, but no later than one week).
· Failed to fill in your information in the declaration of originality. (5 marks)