Lecture 1: Introduction. Pick Your Version of GLUT OpenGL and the GLUT are available for Windows, Linux and many other Operating Systems and platforms.

Slides:



Advertisements
Similar presentations
OPEN GL. Install GLUT Download package di sini Dari devcpp, buka Tools->PackageManager-
Advertisements

CS 4731 Lecture 2: Intro to 2D, 3D, OpenGL and GLUT (Part I) Emmanuel Agu.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
OpenGL (Graphics Library) Software Interface to graphics software Allows to create interactive programs that produce color images of moving 3D objects.
OpenGL (I). What is OpenGL (OGL)? OGL is a 3D graphics & modeling library Can also use it to draw 2D objects.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Programming with OpenGL Part 1: Background Ed Angel Professor of Computer Science, Electrical.
ITEPC 06 - Workshop on Fractal Creation Chiew-Lan Tai and Oscar Au.
Now Playing: Homecoming Kanye West from Graduation Released September 11, 2007.
Programming with OpenGL Part 1: Background Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics 1.
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
Reference1. [OpenGL course slides by Rasmus Stenholt]
CS380 LAB I OpenGL Donghyuk Kim Reference1. [OpenGL course slides by Rasmus Stenholt] Reference2. [
September 2008 IT Software Development Guide.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Using Graphics Libraries Lecture 3 Mon, Sep 1, 2003.
Chi-Cheng Lin, Winona State University CS430 Computer Graphics Graphics Programming and OpenGL.
Computer Graphics Bing-Yu Chen National Taiwan University.
Xin Liu Sep 16, Introduction Xin (Shane) Liu PhD Candidate in Computer Science Research Area: Computer Graphics Tutorial Page: pages.cpsc.ucalgary.ca/~liuxin/CPSC453.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
1 INF160 IS Development Environments AUBG, COS dept Lecture 06 Title: Dev Env: Code::Blocks (Extract from Syllabus) Reference:
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1.
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.
CSC 461: Lecture 41 CSC461: Lecture 4 Introduction to OpenGL Objectives: Development of the OpenGL API OpenGL Architecture -- OpenGL as a state machine.
2001 by Jim X. Chen: Professor Jim X. Chen Department of Computer Science George Mason University Fairfax, VA
Lecture Set 2 Part B – Configuring Visual Studio; Configuration Options and The Help System (scan quickly for future reference)
HelloApps.com What should I do first Young Joon Kim MSRDS First Beginner Course - STEP1.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Install and Setup VC++ and OpenGL Introduction to Computer Graphics and Animation (Principle of Computer Graphics) Rattapoom Waranusast.
Programming with OpenGL Part 1: Background
Lecture 3 OpenGL.
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.
Lecture 6: Computer Languages. Programming Environments (IDE) COS120 Software Development Using C++ AUBG, COS dept.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
CD2012 Principles of Interactive Graphics Lecture 01 Introduction Abir Hussain (Rome: 6.33,Tel , Web:
Introduction to GL Geb Thomas. Example Code int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode ( GLUT_SINGLE | GLUT_RGB | GLUT_DEPTH);
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Modeling with OpenGL Practice with OpenGL transformations.
Programming with Visual Studio.NET A short review of the process.
Introduction to Computer Graphics 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 711,  ex 2271 
Introduction to OpenGL and GLUT. What’s OpenGL? An Application Programming Interface (API) A low-level graphics programming API – Contains over 250 functions.
1 / 61 Using the Customer Support Web Site © 2006, Universal Tax Systems, Inc. All Rights Reserved. Customer Support Site Objectives –In this chapter you.
Intro to OpenGL (Version 2) Geb Thomas. Setting Up GLUT You will need GLUT for opening windows We can use the version made by Nate Robins: –
NoufNaief.net TA: Nouf Al-harbi.
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.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
How to Execute first program in Borland C++. Install Borland C++ Download Borland C++ from LMS – rland%20C++%20V3.1.ziphttp://vulms.vu.edu.pk/Courses/CS609/Downloads/Bo.
TEAM FOUNDATION VERSION CONTROL AN OVERVIEW AND WALKTHROUGH By: Michael Mallar.
Introduction to OpenGL Muhammad Aamir Khan Lecturer, DCS, UOP.
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.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
Programming with OpenGL Part 1: Background
Starting to draw dealing with Windows which libraries? clipping
גרפיקה ממוחשבת: מבוא ל-OpenGL
Programming with OpenGL Part 1: Background
Welcome to Intro to C/C++ CISC 192
Introduction to OpenGL
Download and Installation of code::blocks
Install MySQL Community Server and MySQL Workbench
Programming with OpenGL Part 1: Background
Starting to draw dealing with Windows which libraries? clipping
Welcome to Intro to C/C++ CISC 192
Presentation transcript:

Lecture 1: Introduction

Pick Your Version of GLUT OpenGL and the GLUT are available for Windows, Linux and many other Operating Systems and platforms. You will need to select your version of OpenGL/GLUT for programming. It is recommended that you choose an OS, platform and IDE that is most familiar to you. We will be using C++ as our base language in this course, however much of the programming will be calls to OpenGL and GLUT functions. It is important to get your version of the programming environemnt operational as soon as possible. This Lecture supports the use of Windows Visual Studio.NET 2005 and Dev-C++.

1. Go to 2. Find "whats new" news tab. It should be right in the middle of the home page. 3. Click and follow the Dev C++ Beta link and download the program. (version, v ) download the file that includes Dev C++ plus the Mingw/GCC compiler. 4. Choose a mirror site. 5. Install Dev C Open Dev C++ and go to "Tools > Check for Updates/Packages". 7. Click below the "Select devpack server" and select "devpacks.org community devpacks". 8. Now click "check for updates" at the bottom of the page. scroll through the lists of packages until you find a glut package. Check the small box to the left of the name. Download it, and then the computer will install it automatically. Now you have opengl (OpenGL comes w/dev c++) and GLUT. Once you download GLUT, Dev C++ even does you a favor by creating a template for GLUT programs. To use the template, click the "multimedia" tab in the "create a project" window. The GLUT template should be there for you to use. Installing OpenGL and GLUT with Dev-C++

Open Tools from the Menu Bar and Select Check for Updates/Packages, then Select devpaks.org Community Devpaks for the server. Click on Check for updates at the bottom of the dialog box.

Scroll down to freeglut, check the box and then click on Download selected.

#include void render(void) { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_LINE_LOOP); glVertex3f(-0.8,-0.8,0.0); glVertex3f( 0.8,-0.8,0.0); glVertex3f( 0.8, 0.8,0.0); glVertex3f(-0.8, 0.8,0.0); glEnd(); glFlush(); } int main(int argc, char *argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100,100); glutInitWindowSize(500,500); glutCreateWindow("My First openGL Program"); glutDisplayFunc(render); glutMainLoop(); return EXIT_SUCCESS; } Dev-C++ Version of GLUT Program

General Win32 GUI Parameters Linker -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32 Project Options

Program Output

Introduction to the GLUT for Windows Visual Studio.NET 2005 The GLUT (openGL Utility Toolkit) was developed by Mark Kilgard for X-Windows and was later ported to MS_Windows by Nate Robins. The GLUT is a set of high level software tools that provide programmer access to openGL while avoiding the details of a specific GUI. This tutorial uses the latest version of the GLUT available at the GLUT HomePage. A local copy of the GLUT 3 Specification is avaliable here.GLUT HomePagehere If you are creating openGL applications in Linux or for the SGIs you can find supporting information at the GLUT HomePage including all source code and bindings. If you are running windows and Visual Studio.NET then you can download the necessary.dll, include and.lib files here. Place the.dll files into Windows/System32 folder, the.lib files into the.lib folder inside C://Program Files/Microsoft Visual Studio 8/VC/lib/. The.h files in the gl folder must be placed inside the include/gl folder. Replace existing files only if they are older than the downloaded files.here Getting Started (for PCs only) Install Microsoft Visual Studio.NET 2005 professional edition Create a New Project C++ Windows32 Console application Replace the automatically generated source code with the sample code below Compile and Run If there are build errors, comment out the offending lines of code and recompile until you get a successful execution (klugy but effective until some someone tracks down how Microsoft has "fixed" the latest edition of their IDE. Ironic justice -- Managed DirectX is now even worse than openGL running under MS Visual Studio.NET 2005 Professional Edition.)

#include "stdafx.h" #include void render(void) { glClearColor(1.0,1.0,1.0,1.0); glColor3f(0.0,0.0,0.0); glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_LINE_LOOP); glVertex3f(-0.8,-0.8,0.0); glVertex3f( 0.8,-0.8,0.0); glVertex3f( 0.8, 0.8,0.0); glVertex3f(-0.8, 0.8,0.0); glEnd(); glFlush(); } void main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowPosition(100,100); glutInitWindowSize(500,500); glutCreateWindow("My First openGL Program"); glutDisplayFunc(render); glutMainLoop(); } Visual Studio.NET 2005 Version of GLUT Program

Program Output