[SOLVED] Computer-Graphics Assignment 1-Transformation Detail Instruction

24.99 $

Category:

Description

Rate

 

Goal

◆ Interact with five model (independently)

◆ Control the camera

◆ Implement transformation, viewing, and projection matrices (MVP)

◆ Switch between 5 models

◆ Switch between solid and wireframe mode

◆ Finish all the TODO in main.cpp and vertex shader

◆ Keep scene ratio when window reshaped ◆ Add floor plane in world scene
◆ …

2

Assignment 1

◆ Announce date: 2021/04/13 ◆Deadline: 2021/05/04 23:59(UTC+8)
◆ Late work will be penalized by 20/week. ◆ Copy & paste others’ code will get 0.

◆ Hand in your homework to eeclass in the following form (-5 for penalty)

◆ studentID_HW1.zip
◆ studentID_HW1_Report.pdf

3

In studentID_HW1.zip

◆ Depend on your device x64 資料夾可以不用上傳

For Windows For Mac

4

Submission Guide

◆Please submit to course webpage at NTHU eeclass system

▪ Notice:E-mailsubmissionwillnotbeaccepted

◆Submission should include

  • ▪  Sourcecodes(includingsolutionandprojectfiles)
  • ▪  Executablebinary(canberunonPC/windows)
  • ▪  Documentation(explainhowyoudiditandhow to operateit)
  • ▪  Notice:pleasedonotsubmitany3Dmodelstosave the diskspace◆Contact with TAs if you have problem in submission

5

Key Mapping

  • ◆  Please follow the spec bellow, or you would not get the score of item.
  • ◆  You must make sure your key mapping is exactly same to ours.
  • ◆  W: switch between solid and wireframe mode
  • ◆  Z/X: switch the model
  • ◆  O: switch to Orthogonal projection
  • ◆  P: switch to NDC Perspective projection
  • ◆  T: switch to translation mode
  • ◆  S: switch to scale mode
  • ◆  R: switch to rotation mode

6

Key Mapping

◆ E: switch to translate eye position mode
◆ C: switch to translate viewing center position

mode

◆ U: switch to translate camera up vector position mode

◆ I: print information

◆ Translation Matrix, Rotation Matrix, Scaling Matrix, Viewing Matrix, Projection Matrix

7

Key Mapping

◆If you switch mode by T, S, R, E, C, andU ◆ Apply change on Z axis when scroll the

wheel
◆ Apply change on X axis when mouse drag

horizontally

◆ Apply change on Y axis when mouse drag vertically

◆Only rotation should apply X axis when mouse drag vertically, and Y axis when mouse drag horizontally

8

Report

◆ Some screen shot
◆ Description of your program control

instructions
◆ Other special things you have done

9