Interactive Computer Graphics CS 418 – Spring 2015 TA: Zhicheng Yan, Sushma S Kini, Mary Pietrowicz Originally created by Mahsa Kamali.

Slides:



Advertisements
Similar presentations
Microsoft ® Office PowerPoint ® 2003 Training Package to a CD Your STS, Tom Redd, presents:
Advertisements

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.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
Programming with OpenGL Part 1: Background Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
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.
CS 115 TA Orientation Fall More students! Enrollment up to sections + night about 22% CS majors (50 on 8/16)
CSE 528 Final Project Submission Dongli Zhang. Recent Due 10-Paper Survey due November 26 Send PDF file to BOTH Professor and TA Professor:
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
CS380 LAB I OpenGL Donghyuk Kim Reference1. [OpenGL course slides by Rasmus Stenholt] Reference2. [
CSE328:Computer Graphics OpenGL Tutorial Dongli Zhang Department of Computer Science, SBU Department of Computer Science, Stony.
CAP4730: Computational Structures in Computer Graphics Introduction to OpenGL.
CS 638, Fall 2001 CS 638: Computer Games Technology Fall 2001.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 16 Computer Graphics Course Introduction.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Faculty Center for Instructors and Roster Contacts Roles and Access Faculty Center Features Grade Changes and Approval.
COS 397 Computer Graphics Assoc. Prof. Svetla Boytcheva AUBG 2013 COS 397 Computer Graphics Practical Session №1 Introduction to OpenGL, GLFW and CG.
C O M P U T E R G R A P H I C S Jie chen Computer graphic -- OpenGL Howto.
Using OpenGL in Visual C++ Opengl32.dll and glu32.dll should be in the system folder Opengl32.dll and glu32.dll should be in the system folder Opengl32.lib.
CSC 461: Lecture 41 CSC461: Lecture 4 Introduction to OpenGL Objectives: Development of the OpenGL API OpenGL Architecture -- OpenGL as a state machine.
CS 480/680 Computer Graphics Programming with Open GL Part 1: Background Dr. Frederick C Harris, Jr. Fall 2011.
2001 by Jim X. Chen: Professor Jim X. Chen Department of Computer Science George Mason University Fairfax, VA
CS 425 Game Programming I Jan M. Allbeck. Outline  Introductions  Expectations  Tools and setup  Quick introduction to C++ and Visual Studio  What.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
Lecture 1: Introduction. Pick Your Version of GLUT OpenGL and the GLUT are available for Windows, Linux and many other Operating Systems and platforms.
Install and Setup VC++ and OpenGL Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
Programming with OpenGL Part 1: Background
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
CS 450: COMPUTER GRAPHICS INSTALLING GLUT AND GLEW SPRING 2015 DR. MICHAEL J. REALE.
Interactive Computer Graphics CS 418 – Spring 2015 Mesh Rendering, Transformation, Camera Viewing and Projection in OpenGL TA: Zhicheng Yan Sushma S Kini.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
1. OpenGL/GLU/GLUT  OpenGL v4.0 (latest) is the “core” library that is platform independent  GLUT v3.7 is an auxiliary library that handles window creation,
1 Faculty Center for Instructors and Roster Contacts Accessing Faculty Center Class Roster Grade Roster Request Grade Changes Grade Approval Process Next.
Introduction to OpenGL Programming Jian-Liang Lin 2002.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Interactive Computer Graphics CS 418 MP1: Dancing I TA: Zhicheng Yan Sushma S Kini Mary Pietrowicz Slides Taken from: “An Interactive Introduction to OpenGL.
Lecture 2: Some definitions of terms 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
INTRODUCTION TO PROGRAMMING ISMAIL ABUMUHFOUZ | CS 146.
For the next 25 minutes we are going to look at some SMART Board tips and tricks. Even if you are not a classroom teacher or you don’t have a SMART Board.
Gianfranco Doretto April 19, CS 174 Discussion 2 TA Gianfranco Doretto.
NoufNaief.net TA: Nouf Al-harbi.
ISAT/CS 250 login: jmu eid like harrisnl When you log into the lab machines using your jmu eid Your “home” directory is actually a directory on a server.
Computer Graphics Lab 1 OpenGL.
1 How to Install OpenGL u Software running under Microsoft Windows makes extensive use of "dynamic link libraries." A dynamic link library (DLL) is a set.
CS 490 GRAPHICS COMPUTER Lecture 1: Introduction Computer Science Department 1.
NoufNaief.net 1 TA: Nouf Al-Harbi.
Faculty Center for Instructors Roles and Access Faculty Center Features Grade Changes and Approval.
MGS 351 Introduction to Management Information Systems Lecture #1.
Lecture 2 Review OpenGL Libraries Graphics Overview Rendering Pipeline OpenGL command structure.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Encouraging Dynamic Growth for Educators ONENOTE OVERVIEW SARAH STODDARD.
Today in CS161 Week #1 The Science of Computing What does it mean to write a program How is game programming different? Consider using Computer Graphics.
Faculty Center for Instructors Roles and Access Faculty Center Features Grade Changes and Approval.
1 1.Log in to the computer in front of you –Temp account: 210class / 2.Update your in Cascadia's system –If I need to you I'll use.
Computer Graphics -practical- Lecture 6. (visual c++) open gl library To use open GL with VC++ we add these files:- 1)Glut.h C:\program files\ Microsoft.
Development Environment
Katherine Kampf / kkampf
Interactive Computer Graphics CS 418 – Fall 2017
Programming with OpenGL Part 1: Background
OpenGL project setup.
CS4610/7610: Introduction to Computer Graphics
English Amped Today’s Agenda 6th Hour We’re in the news! World History
Chapter 2 Setup.
Programming COMP104: Fundamentals and Methodology Introduction.
Programming with OpenGL Part 1: Background
Computer Graphics Practical Lesson 1-
Computer Graphics Course Introduction.
Programming with OpenGL Part 1: Background
CSCE 206 Lab Structured Programming in C
Presentation transcript:

Interactive Computer Graphics CS 418 – Spring 2015 TA: Zhicheng Yan, Sushma S Kini, Mary Pietrowicz Originally created by Mahsa Kamali

Agenda for today  Communication Channels & Resources  Set up Programming Environment!  We will be showing some code snippets in class so bring your laptop if you want to follow along

Piazza  Post questions that might be beneficial to everyone   Don’t wait until the night before the MP/HW is due  Send your questions and ask for help soon!

TA Info  TAs:  Zhicheng Yan. Office Hour: Fri 4-5pm SC 3238A  zyan3 at illinois.edu  Mary Pietrowicz. Ofc. Hour: Wed 2:30-3:30 SC 0207   Sushma Kini. Office Hour: Thurs 3-4pm SC 0207 

Resources Google, StackOverflow, Lighthouse 3D…… Tutorials – – – Books – OpenGL Programming Guide (OpenGL Red Book) Libraries: – DevIL (OpenIL): – CXImage:

Student Illinois  UIUC Student Chapter of ACM SIGGRAPH   Short Films, Video Games, Graphics Research  GameBuilders   Video Games

Compile on Windows  Microsoft Visual Studio (2008 and later)  OpenGL (already provided)  GLUT:    Put files in the default search path OR  Link through the project settings  Use the HelloWorld project on discussion page

Troubleshooting Check if you use the default stdfax.h precompiled header option in your project, and forget to include "stdafx.h“ or “stdlib.h” in your code. Check if the compiler is complaining about linking error. Try to add glut32.lib, glu32.lib, and opengl32.lib in your link dependency.

Compile on Linux  Get the developer packages  OpenGL ▪ Nvidia or Mesa version etc.  Glut ▪ freeGlut  Ensure that install directories are in your compiler path  Compile with the appropriate flags (–lglut)  et_opengl_setup_linux/video.php

Compile on OSX  Use Xcode… 

Q&A

Tips for success Start Early Compile/Debug often Use a debugger ( Ask questions early Use libgfx by Michael Garland: Start Early

OpenGL Function Format

Drawing Polygons (Class example) glBegin(GL_TRIANGLE_STRIP); glVertex3f(0,0,0); glVertex3f(.5,1,0); glVertex3f(1,0,0); glVertex3f(1.5,.8,0); glVertex3f(2,0,0); glVertex3f(3,1,0); glEnd(); v1 v2 v3 v4 v5 v6

Meshes

Mesh Types  Explicit mesh description  List of polygonal faces (w/ duplicates)  “Polygon soup”  Indexed Mesh Description  List of vertices  List of polygons  Space efficient

Mesh Formats  Obj (we use in this class)  Contains definitions of 1 or more named 3D objects  ASCII  No compression  MTL  A Simple Obj Viewer Can be used to check how the given mesh looks like: MeshLabMeshLab