-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReadMe.txt
53 lines (31 loc) · 1.42 KB
/
ReadMe.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Avinash Akka
CSCI 420: Assignment 1: Height Fields
1. The Code has been written in C Language and has been compiled
and executed using Microsoft Visual Studio 2010 on a Windows 8
Operating System.
2. The larger part of the code is unchanged from the starter
code.
3. A function drawHeightFieldImage() to draw the Height Field has
been defined which reads the color channel for each pixel and
then computes the height i.e Z value by converting it to a
value between 1-0.
Reference: Page 242 - Interactive Computer Graphics - A
TopDown Approach by Edward Angel 6th Edition.
4. The timer function implementation has been referenced from
www.glprogramming.com.
5. The program gives user the choice to render the image in
either Points, Lines or Triangle Strips.
6. By default the image is rendered in Triangle Strips.
7. An additional implementation has been implemented to increase
or decrease the height of the image.
8. Mouse can be used for Transformation functions of the image.
9. Rotation in Idle function
KEYS DESCRIPTION
Press p or P : To render in Points.
Press l or L : To render in Lines.
Press t or T : To render in Triangles.
EXTRA CREDITS IMPLEMENTATION
Press I or i : To Increase the height in image.
Press D or d : To Decrease the height in image.
The 3D image rotates about its axis.
Press 1 or 2 or 3 to choose different shades of colors.