Changes between Version 13 and Version 14 of tutorial
- Timestamp:
- Jun 27, 2013, 8:36:42 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
tutorial
v13 v14 1 = Visualization with OpenGL hands-on = 1 2 [[PageOutline]] 2 = OpenGL hands-on tutorial = 3 Tutorial aims to introduce visualization techniques with modern Open Graphics Language (OpenGL) 4 approaches standardized with version 3.x+. OpenGL Shading Language (GLSL) is used for that without 5 tendency to introduce ''photo-realism''as output but rather useful colors for scientific data exploration. 6 {{{ 7 #!html 8 <object data="/vaje/raw-attachment/wiki/tutorial/OpenGL-pipeline.svg" type="svg+xml"></object> 9 }}} 3 10 Running this tutorial on Linux desktop one requires at least the OpenGL 2.0 graphics 4 with the OpenGL Shading Language (GLSL)1.1 and supporting libraries GL, GLU, GLUT, GLEW.11 with the GLSL 1.1 and supporting libraries GL, GLU, GLUT, GLEW. 5 12 This can be verified with the following commands: 6 13 {{{ … … 135 142 We extend previous exercise with example that introduces OpenGL 3.x techniques: 136 143 * OpenGL Shading Language where simple vertex and fragment shader are required. 137 * Vertex Buffer Objectsstored in GPU144 * Vertex Aray Objects (VAOs) stored in GPU 138 145 Create {{{triangle.c}}} and update {{{Makefile}}} with new target 139 146 {{{ … … 231 238 232 239 == Exercises #2 == 233 1. To be able to continue and not get lost introduce shader compiler logs in case of compilation errors by adding the following code into {{{setShaders()}} right at after vertex shader compilation:240 1. To be able to continue and not get lost introduce shader compiler logs in case of compilation errors by adding the following code into {{{setShaders()}}} right at after vertex shader compilation: 234 241 {{{ 235 242 #!c … … 245 252 }}} 246 253 Do not forget to repeat the same thing for fragment shader. 247 2.Add linker debugging254 Add linker debugging 248 255 {{{ 249 256 #!c … … 260 267 }}} 261 268 Create some error to verify if it works. 262 3.For general (core) OpenGL errors we can use the following utility at suspicious places.269 For general (core) OpenGL errors we can use the following utility at suspicious places. 263 270 {{{ 264 271 #!c