Konferensartikel

Teaching OpenGL and Computer Graphics with Programmable Shaders

Johan Nysjö
Centre for Image Analysis, Dept. of Information Technology, Uppsala University, Sweden

Anders Hast
Centre for Image Analysis, Dept. of Information Technology, Uppsala University, Sweden

Ladda ner artikel

Ingår i: Proceedings of SIGRAD 2015, June 1st and 2nd, Stockholm, Sweden

Linköping Electronic Conference Proceedings 120:9, s. 32-34

Visa mer +

Publicerad: 2015-11-24

ISBN: 978-91-7685-855-4

ISSN: 1650-3686 (tryckt), 1650-3740 (online)

Abstract

This paper presents our approach and experiences of transferring an introductory computer graphics course from the fixed-function OpenGL pipeline to modern shader-based OpenGL. We provide an overview of the selected course structure and the C++-based programming environment that we use for assignments and projects, and discuss some of the technical and pedagogical challenges, e.g., multiplatform support and shader debugging, that we ran into. Based on course evaluations and the outcome of programming assignments, we conclude that introducing shaders early and skipping the fixed-function pipeline completely is a sound and viable approach. It requires more initial effort from teachers and students because of the added complexity of setting up and using shaders and vertex buffers, but offers a more interactive and powerful programming environment, which we believe helps promoting the creativity of students.

Nyckelord

OpenGL; programmable shaders; pedagogy

Referenser

[AS11] ANGEL E., SHREINER D.: Teaching a shader-based introduction to computer graphics. Computer Graphics and Applications, IEEE 31, 2 (2011), 9–13. 1, 2

[Cou15] COURSERA: Interactive Computer Graphics with WebGL. https://www.coursera.org/course/webgl, 2015. Accessed on April 14, 2015. 3

[Cre15] CREATION G.-T.: OpenGL Mathematics (GLM). http://glm.g-truc.net/, 2015. Accessed on April 14, 2015. 2

[Dec15] DECAUDIN P.: AntTweakBar. http://anttweakbar.sourceforge.net/doc/, 2015. Accessed on April 14, 2015. 2

[dV15] DE VRIES J.: Learn OpenGL. http://learnopengl.com/, 2015. Accessed on April 14, 2015. 3

[Kit15] KITWARE: CMake. http://www.cmake.org/, 2015. Accessed on April 14, 2015. 2

[PPGT14] PAPAGIANNAKIS G., PAPANIKOLAOU P., GREASSIDOU E., TRAHANIAS P.: glGA: an OpenGL Geometric Application framework for a modern, shader-based computer graphics curriculum. Eurographics 2014, Education Papers (2014), 1–8. 1

[Rom08] ROMEIKE R.: Towards Students’ Motivation and Interest: Teaching Tips for Applying Creativity. In Proceedings of the 8th International Conference on Computing Education Research (New York, NY, USA, 2008), Koli ’08, ACM, pp. 113–114. 3

Citeringar i Crossref