Introduction to Computer Graphics (CMPS 160-Lab, Fall -2007)

Slides:



Advertisements
Similar presentations
OpenGL CMSC340 3D Character Design & Animation. What is OpenGL? A low-level graphics library specification designed for use with the C and C++ provides…
Advertisements

Computer Graphics CSCE 441
CS 202 Computer Science II Lab Fall 2009 September 24.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
Lab 1: OpenGL Tutorial CS 282. What’s the plan for today? Go over our framework code. Learn some basic OpenGL! Reveal Lab 1 Answer questions.
What is OpenGL? Low level 2D and 3D Graphics Library Competitor to Direct3D (the rendering part of DirectX) Used in: CAD, virtual reality, scientific.
MCT260-Operating Systems I Operating Systems I Introduction to Operating Systems.
Painterly Rendering CMPS Assignment 2. OpenGL OpenGL is a cross-language, cross- platform specification defining and API for 2D and 3D graphics.
Introduction to OpenGL. What is OpenGL OpenGL is a low-level software interface to graphics hardware No commands for performing windowing tasks or obtaining.
LAB #1: Computer Graphics Framework IGX is a set of programs which allow you to write graphics programs in C/C++ from plain text files. Benefits: 1. You.
Makefiles, Unix, and Project 1 Q&A : Recitation 2 September 12, 2007.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Agenda What is Computer Programming? The Programming Process
Computer Graphics Bing-Yu Chen National Taiwan University.
CS110/CS119 Introduction to Computing (Java)
CS413: Java Programming language Applications Applets
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
System software operating system 1.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
INTRO TO COMPUTER GRAPHICS TEXT EDWARD ANGEL: EDITION 5 CS770/870
Introduction to Matlab & Data Analysis
Introduction to OpenGL and GLUT GLUT. What is OpenGL? An application programming interface (API) A (low-level) Graphics rendering API Generate high-quality.
C O M P U T E R G R A P H I C S Jie chen Computer graphic -- OpenGL Howto.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
CSI 1390: Introduction to Computers TA: Tapu Kumar Ghose Office: STE 5014
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
1 Graphics CSCI 343, Fall 2015 Lecture 1 Introduction to Graphics Read: Chapter 1 of textbook.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
JCreator Tonga Institute of Higher Education. Programming with the command line and notepad is difficult. DOS disadvantages  User Interface (UI) is not.
 “OpenGL (Open Graphics Library) is a standard specification defining a cross- language cross-platform API for writing applications that produce 2D and.
Introduction to OpenGL Programming Jian-Liang Lin 2002.
MAE 152 Computer Graphics for Scientists and Engineers Fall 2003 Dr. Prashant V. Mahajan Senior Research Scientist AValonRF, Inc., El Cajon, CA.
Interactive Computer Graphics CS 418 MP1: Dancing I TA: Zhicheng Yan Sushma S Kini Mary Pietrowicz Slides Taken from: “An Interactive Introduction to OpenGL.
CPSC 453 Tutorial Xin Liu Sep 23, OpenGL An open standard of rendering pipeline A software interface to graphics hardware A useful set of APIs for.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Introduction to OpenGL. OpenGL is a low-level graphics library specification. It makes available to the programmer  a small set of geometric primitives.
Software refer to all the programs that can be run on the computer.
Program 2 due 02/01  Be sure to document your program  program level doc  your name  what the program does  each function  describe the arguments.
Introduction to Programming Using C An Introduction to Operating Systems.
Define and describe operating systems which contain a Command Line Interface (CLI) Define and describe operating systems which contain a Graphical User.
Gianfranco Doretto April 19, CS 174 Discussion 2 TA Gianfranco Doretto.
NoufNaief.net TA: Nouf Al-harbi.
Computer Graphics Lab 1 OpenGL.
Lecture 2 Review OpenGL Libraries Graphics Overview Rendering Pipeline OpenGL command structure.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Graphics Programming. Graphics Functions We can think of the graphics system as a black box whose inputs are function calls from an application program;
OPERATING SYSTEMS (OS) By the end of this lesson you will be able to explain: 1. What an OS is 2. The relationship between the OS & application programs.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.
Allows the user and the computer to communicate with each other.
The make utility (original presentation courtesy of Alark Joshi)
Introduction to MiniSAT
Useful Linux Commands.
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
Outline Announcements Dynamic Libraries HWII on web, due Friday
Tonga Institute of Higher Education
Introduction to Alice Alice is named in honor of
Introduction to OpenGL
How to Run a Java Program
Introduction to MiniSAT
Compile and run c files.
Presentation transcript:

Introduction to Computer Graphics (CMPS 160-Lab, Fall -2007) Professor: James Davis TA : Indrani Chakravarty Lab Tutors: Bryan Harris and Chirag Dave Required Lab: M or T 11-1 Optional Lab: W 10-12, Th 11-1

Lab 0 Objective: To learn how to build an example program using open Graphics Library(openGL), and to compile and run it. Example of output from gltest.c

OpenGL and GLUT OpenGL provides commands for –specifying geometric objects in 2 or 3 dimensions, e.g. points, lines, polygons, images etc, and –for controlling how these objects are drawn on the display (e.g. color). OpenGL does not provide commands for performing windowing tasks or for obtaining user input. GLUT (the OpenGL Utility Toolkit) does. The starter code gltest.c is a decent template for making any basic OpenGL program -- – it has callbacks to support mouse, keyboard (currently empty function bodies) and –it demonstrates some animations and transformations.

Tasks (1) Compiling and Running the code 1)Download prog0.tgz from 2)Untar and unzip the file onto the local directory using –tar -xzvf prog0.tgz 3)Change the directory to prog0 –cd prog0 4)Run the following and see the output –make –./gltest 5)If you get an error while compiling –Open Makefile using any editor –Comment the following line and go back to Step 4 CFLAGS += -O3 -ffast-math -mtune=G5 -mcpu=G5

Tasks (2) Playing around with the code 1)See the effect of the following changes to the code, and try understanding what’s happening -- 1)Change the arguments of the Translation function and Rotation function 2)Change the 1)color of the teapot 2)color of the animations around the teapot 3)size of the teapot and the size of the animating cubes around the teapot 2)Find out what the following functions from the code do, and see their effect on the GUI -- 1)cb_reshape 2)cb_keyboard 3)Understand the code gltest.c

For Online help To know more about the openGL and GLUT functions used in this code, –Do a “man”. For example $ man glRotatef –See the online copy of the RedBook on openGL at