-
Notifications
You must be signed in to change notification settings - Fork 0
avinashakka/CGProject1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
Height Fields - using OpenGL and C
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published