Computer Graphics Lab 1 OpenGL.

Slides:



Advertisements
Similar presentations
Programming with OpenGL - Getting started - Hanyang University Han Jae-Hyek.
Advertisements

Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
OPEN GL. Install GLUT Download package di sini Dari devcpp, buka Tools->PackageManager-
Chapter 2: Graphics Programming
Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Building Web Pages With Microsoft Office. Introduction This tutorial is for the beginning web builder. It utilizes software that you already have, Microsoft.
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.
Introduction to OpenGL Keng Shih-Ling 2003 Spring.
Write a Simple Program with OpenGL & GLUT. Books and Web Books OpenGL Programming Guide (Red-book) OpenGL Reference Manual (Blue-book) OpenGL Super Bible.
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.
Computer Graphics Bing-Yu Chen National Taiwan University.
CAP4730: Computational Structures in Computer Graphics Introduction to OpenGL.
Tutorial 11 Installing, Updating, and Configuring Software
VTK: The Visualization Toolkit Part I: Overview and object models March 28, 2001.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
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.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
2001 by Jim X. Chen: Professor Jim X. Chen Department of Computer Science George Mason University Fairfax, VA
Build CORBA Applications with C++, MICO and Win32 Luiz Carlos d´Oleron
OpenGl Graphics Programming. Introduction OpenGL is a low-level graphics library specification. It makes available to the programmer a small set of geomteric.
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.
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
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,
Active-HDL Interfaces Debugging C Code Course 10.
Introduction to OpenGL Programming Jian-Liang Lin 2002.
Programming with Visual C++ A short review of the process.
Setting Up Eclipse. What is Eclipse? Eclipse is a free, downloadable software that allows us to create, compile, and run JAVA programs.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
DEVS M&S Tutorial with eclipse IDE Chungman Seo
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.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
CS 470 Computer Graphic Getting Started with OpenGL.
NoufNaief.net TA: Nouf Al-harbi.
CGGM Lab. Tan-Chi Ho Introduction to 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.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
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.
HYPACK PROJECTS HYPACK Projects What’s in a Project  ‘ A Project contains all of the information about a specific survey in a separate folder.
Install for 64bit  Glui2.36.zip 을 다운로드  src  msvc  glui.sin 파일을 Visual Studio 2010 으로 열기  _glui library 를 선택후 빌드  빌드시 다음과 같은 오류가 발생하면 error C2252:
AUTUMN Asst. Prof. Dr. Gazi Erkan BOSTANCI Slides by Robert Thomson, Süleyman Tosun and Kurtuluş Küllü.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
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.
Labs: Create, deploy and test a simple web service
Introduction to OpenGL (IDE: Eclipse)
Programming with OpenGL Part 1: Background
CS380 Lab Spring Myungbae Son.
OpenGL project setup.
Window reshaping, Keyboard interaction, Camera, Drawing objects
TCL command in C, a simple example Nguyen Truong – GCS VN Aug 5, 2004
גרפיקה ממוחשבת: מבוא ל-OpenGL
1. Open Visual Studio 2008.
Programming with OpenGL Part 1: Background
Electronics II Physics 3620 / 6620
Computer Graphics, Lee Byung-Gook, Dongseo Univ.
Download and Installation of code::blocks
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Programming with OpenGL Part 1: Background
Introduction to OpenGL Programming
Presentation transcript:

Computer Graphics Lab 1 OpenGL

What is OpenGL?

What is OpenGL? OpenGL is a software interface to graphics hardware. You can use to specify the objects and operations needed to produce interactive three-dimensional applications OpenGL is designed as a hardware-independent interface to be implemented on many different hardware platforms.

OpenGL The most popular raster graphics library, providing a powerful but primitive set of rendering commands Already supported by every window systems OpenGL Utility Library (GLU) : higher-level routines, part of OpenGL implementation Setting up matrices for specific viewing orientations and projections Performing polygon tessellation and rendering surfaces OpenGL Utility Toolkit (GLUT): window –system-independent high-level library. Need to install this library separately.

OpenGL Install OpenGL Utility Toolkit (GLUT) for MS Windows Download GLUT from http://reality.sgi.com/opengl/glut3/glut3.html Unzip the package Set “include directory” and “lib directory” in the C++ Compiler to include the directory containing glut.h, glut.lib Copy glut32.dll into directory DRIVE:\WINNT\SYSTEM Add #include <glut.h> to the beginning of the program

OpenGL OpenGL Programming Guide: Nate Robins’ OpenGL Tutors http://www.cs.ucf.edu/dsg/dtran/teaching/cps5 60/openGL/install/theredbook.zip Nate Robins’ OpenGL Tutors http://www.cs.utah.edu/~narobins/opengl.html

If you are using a PC, OpenGL is included with all versions of Windows If you are using a PC, OpenGL is included with all versions of Windows. You will have to get GLUT from the web. For windows you can download just the dll, lib and .h files. You should find OpenGL32.dll and glu32.dll with your system files. You should find the corresponding lib and .h files supplied with your compiler. The corresponding GLUT files should be placed with them.

OpenGL how to install the glut libraries and dll's ? glut.dll glut.h glut.lib glut32.lib

Files: .h, .lib, .dll The entire folder gl is placed in the Include directory of Visual C++ The individual lib files are placed in the lib directory of Visual C++ The individual dll files are placed in C:\Windows\System32

3. Copy your glut.lib and glut32.lib to: Copy both glut.dll and glut32.dll into your windows directory (WINDOWS , or WINDOWS \System32) Copy your glut.h to: <drive>:\<VC++ path>\include\GL\glut.h *** put the drive where you installed VC++ instead of the <drive> *** *** put the directory where you installed VC++ instead of the <VC++ path> 3. Copy your glut.lib and glut32.lib to: <drive>:\<VC++ path>\lib\glut.lib <drive>:\<VC++ path>\lib\glut32.lib

how to setup VC++ so that you can use the glut libraries? Start VC++ and create a new project. 2. The project has to be a "Win32 Console Application" 3. Type in the name of the project and where it will be on your hard drive. 4. Chose an empty project and click next or finish 5. First thing you need to do when the project opens up is to click on the "Project" menu item from the top. 6. Chose "Settings" (a window will come up) 7. On the left side of the window there are tabs, chose the "Link" tab 8. The string field labeled "Object/library modules" has a few lib files already set in it 9. Go to the end of this string field and enter: opengl32.lib glut32.lib glu32.lib 10. Chose "OK" and that will include all the opengl libraries that you need 11. Now all you need to do is include <gl\glut.h> and you are ready to go

Example