Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

TM240: Introduction to Computer Graphics

TMA Summer 23/24 (KSA version)

Cut-Off Date: 02 July 2024 @11:55 p.m.

Total Marks: 100 marks turned to 15 marks

Contents
Warnings and Declaration…………………………………….………………………………......1
Question 1 ……………….…………………………………. ………………………………...….2
Question 2 …………………………………………………………………………….………. …..2
Question 3 ……………………………………………………….……………………………..…..3
Question 4…….....………….………………………………………………………….…….……..3

Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA
work and avoid plagiarism. The AOU has implemented sophisticated techniques for
plagiarism detection. You must provide all references in case you use and quote
another person's work in your TMA. You will be penalized for any act of plagiarism as
per the AOU's rules and regulations.

Declaration of No Plagiarism by Student (to be signed and submitted by student


with TMA work):

I hereby declare that this submitted TMA work is a result of my own efforts and I have
not plagiarized any other person's work. I have provided all references of information
that I have used and quoted in my TMA work.
Name of Student:……………………………..
Signature:…………………………………………...
Date:…………………………………………………

TM240 / TMA Page 1 of 4 2023/2024 Summer (KSA)


Question one [25 marks]

Using appropriate Java code and animation principles that you learnt in the course, implement the
video in the file falling deformation.mp4. Please provide the code and video that you generated in
your answer sheet.

Question Two [25 marks]

a) Adopting suitable Java primitives and based on the least significant digit of your ID,
implement one of the following shapes: [15 marks]

ID is ended with 2,3


ID is ended with 0,1

ID is ended with 4,5


ID is ended with 6,7

TM240 / TMA Page 2 of 4 2023/2024 Summer (KSA)


ID is ended with 8,9

b) Snapshot the output of a) [2 Marks]


c) Use suitable rendering to fill-in the shape suitably using suitable and well aligned-texture to
reflect the real shape of your drawing. [8 Marks]

Question Three [25 marks]

Using appropriate Java code and animation principles that you learnt in the course, implement the
video in the file q3.mp4. Please provide the code and video that you generated in your answer
sheet.

Question Four [25 marks]

a) Write a java code segment to plot the following shape adopting parametric equations for an
ellipse as:
X=cos(q)
Y=sin(q) for q in the range [0, 2p]

TM240 / TMA Page 3 of 4 2023/2024 Summer (KSA)


b) Adapt the code in a) to output this graphics:

End of Questions

TM240 / TMA Page 4 of 4 2023/2024 Summer (KSA)

You might also like