Knowing the GLSL version of your GPU glGetString(GL_SHADING_LANGUAGE_VERSION) GLSL 1.20 or later?

Slides:



Advertisements
Similar presentations
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Introduction Week 1, Wed Jan 5.
Advertisements

Glsl-simulator Sophia Wang & Brian Burg.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics April 19, 2007.
CG HW1 A Basic Scene Editor. Introduction  Objective –Design a interactive tool to manipulate 3D models for basic transformations.  Input –Some object.
GLSL I May 28, 2007 (Adapted from Ed Angel’s lecture slides)
Atila OGL library “T&L emulated via Vertex Shaders”
Introduction to OpenGL. What is OpenGL OpenGL is a low-level software interface to graphics hardware No commands for performing windowing tasks or obtaining.
Open Graphics Library (OpenGL)
Under the Hood: 3D Pipeline. Motherboard & Chipset PCI Express x16.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Programming in OpenGL Ryan Holmes CSE 570 February 12 th, 2003.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
GPU Programming Robert Hero Quick Overview (The Old Way) Graphics cards process Triangles Graphics cards process Triangles Quads.
Events and Coordinates Lecture 5 Fri, Sep 5, 2003.
Real-Time Computer Graphics. Introduction Aims The aim of the module is to provide a good grounding in the main techniques and algorithms of real-time.
Graphics Programming using OpenGL. OpenGL is a software interface that allows the programmer to create 2D and 3D graphics images. This interface consists.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics Ed Angel Professor Emeritus of Computer.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
CS662 Computer Graphics Game Technologies Jim X. Chen, Ph.D. Computer Science Department George Mason University.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
Shader Program in Gamebryo. Introduction Shader?  A complete Rendering Effect to apply to an object  Shader Program – Vertex/Pixel Shader Shader Programs.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Shading in OpenGL Ed Angel Professor Emeritus of Computer Science University of New Mexico 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E.
CSE 381 – Advanced Game Programming GLSL. Rendering Revisited.
1 Graphics CSCI 343, Fall 2015 Lecture 21 Lighting and Shading III.
1 PA2 – Specification ● Goal ● To see how Instant Radiosity is done ● Objective ● Compile and run our skeleton code for the Instant Radiosity ● Send three.
Computer Graphics IN5I11 Nabil H. Mustafa
게임 프로그래밍 특론 Advanced Game Programming 한신대학교 대학원 컴퓨터공학과 류승택 Spring.
Lighting and Shading Part 2. Global Ambient Light There are at least 8 OpenGL lights and 1 Global Ambient Setting the Global Ambient globalAmbient[] =
1 PA3 – Specification ● Goal ● Finish basic implementation of instant radiosity ● Learn how to transport light in VPL ● Objective ● From PA2, implement.
Programming with OpenGL Part 3: Shaders Ed Angel Professor of Emeritus of Computer Science University of New Mexico 1 E. Angel and D. Shreiner: Interactive.
GLSL I.  Fixed vs. Programmable  HW fixed function pipeline ▪ Faster ▪ Limited  New programmable hardware ▪ Many effects become possible. ▪ Global.
GPU Computing for GIS James Mower Department of Geography and Planning University at Albany.
COMP 175 | COMPUTER GRAPHICS Remco Chang1/XX13 – GLSL Lecture 13: OpenGL Shading Language (GLSL) COMP 175: Computer Graphics April 12, 2016.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Android Wallpaper Windmill on a meadow. Used technologies and programs(1) An OpenGL ES 2.0 Based 3D Framework For Android Rajawali is a 3D framework for.
CMGT/410 Project Planning & Implementation Version 13 Check this A+ tutorial guideline at 410/CMGT-410-Complete-Class-Guide.
PSY 340 Complete Class Version 3 Check this A+ tutorial guideline at Y-340/PSY-340-Complete-Class-Guide For more classes.
Implementing Phong Lighting
Our Graphics Environment
ICG Syllabus 1. Introduction 2. Viewing in 3D and Graphics Programming
CS 4722 Computer Graphics and Multimedia Spring 2018
CISC Final Review ---Miao Tang.
Introduction to Computer Graphics with WebGL
Vectors, Normals, & Shading
Introduction to Computer Graphics with WebGL
Day 05 Shader Basics.
Overview Course Overview Course Webpage Administrative issues
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
!'!!. = pt >pt > \ ___,..___,..
Introduction to Shaders
HW for Computer Graphics
HW for Computer Graphics
Unity’s Standard Shader Physically Based Shading
CS5500 Computer Graphics April 17, 2006 CS5500 Computer Graphics
ICG 2018 Fall Homework1 Guidance
Programming with OpenGL Part 2: Complete Programs
Programming with OpenGL Part 3: Shaders
Hw03 : shader.
Programming with OpenGL Part 2: Complete Programs
Last Time Liang-Barsky Details Weiler-Atherton clipping algorithm
CIS 441/541: Introduction to Computer Graphics Lecture 15: shaders
Put the on A on the keyboard.
Computer Graphics Shading in OpenGL
Shading in OpenGL Ed Angel Professor Emeritus of Computer Science
Opengl implementation
CS 480/680 Fall 2011 Dr. Frederick C Harris, Jr. Computer Graphics
Presentation transcript:

Knowing the GLSL version of your GPU glGetString(GL_SHADING_LANGUAGE_VERSION) GLSL 1.20 or later?

Great Tutorial for OpenGL 3.0 or later: GLSL 1.3 or Later

GLFW keyboard call back void My_Key_Callback(int character, int action) { if (action == GLFW_PRESS) { switch (character) { case '1': light_switch[0] = (light_switch[0]+1)%2; break; case 'f': shader_mode = 'f'; break; default: break; } glfwSetCharCallback(My_Key_Callback);

Skeleton Code provide on ICG course web GLSL 1.2 or older  Tutorial for GLSL 1.2

HW2 requirement VersionOpenGL GLSL 1.3OpenGL GLSL 1.2 Rrequirement 1.Flat shader and Gouraud shader (+2pts) 2.Phong shader(+ 2pts) 3. Put "at least" three lights in the environment. They should be placed at the top- right-front, bottom-left-front and bottom-left-back sides of the object. (+1pt) 4. Any other efforts you make, including interface design, visual effects…etc. (bonus: +0-1 pt) 1.Flat shading and Gouraud shading by OpenGL function The rest are the same.

Flat shading in OpenGL 3.0?

Strongly recommend to implement some transformations! The difference between the shaders can be easily shown

GLSL quick reference guide