







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































● Get latest drivers for your videocard ● (^) (www.nvidia.com or ati.amd.com) ● Get the latest glext.h ● (^) (http://www.opengl.org/registry/api/glext.h) ● At run time use wglGetProcAddress() void* wglLoadExtension(char* name) { void* result = wglGetProcAddress(name); if(!result) { printf("Extension %s could not be loaded.\n", name); } return result; }
● You need wglGetProcAddress for all new functions declared after OpenGL 1. ● Other libraries can handle this for you ● (^) GLEW (OpenGL Extension Wrangler) ● GLEE (OpenGL Easy Extension Library)
● (^) Late 1980s : Silicon Graphics IrisGL - SGI hardware dependent ● (^) 1992 : OpenGL 1.0 - Open standard ● (^) Standard is governed by the OpenGL ARB (architecture review board) : ● (^) Microsoft, SUN, SGI, nVidia, ATI, etc. ● (^) 1997 : OpenGL 1.1 - texture objects and vertex arrays. ● (^) 1998 : OpenGL 1.2 - 3d textures, new blending equations ● (^) 2001 : OpenGL 1.3 - cube maps, multitexturing ● (^) 2002 : OpenGL 1.4 - Automatic mipmap generation, depth textures ● (^) 2003 : OpenGL ES - embedded systems ● (^) 2003 : OpenGL 1.5 - vertex and fragment programs, occlusion query ● (^) 2004 : OpenGL 2.0 - GL shading language, non-power-of-2 textures, point sprites ● (^) August 2006 : OpenGL 2.1 - GLSL changes. ● (^) Fall 2006 – the Khronos group becomes the governing body for OpenGL ● (^) 2006 Plans for OpenGL 3.0 (codename “Long Peaks”) and OpenGL 4.0 (codename “Mt. Evans”) announced ● (^) 2008 : OpenGL 3.0 specification finalized
● OpenGL 1.3 : Cube Map Textures,Multisample Antialiasing ● OpenGL 1.4 : Automatic Mipmap generation, Depth Textures ● OpenGL 1.5 : Vertex Buffer Objects, Occlusion Query ● OpenGL 2.0 : Programmable Shading (GLSL), Multiple Render Targets, NPOT textures, Point Sprites ● OpenGL 2.1 : Pixel Buffer Objects ● EXT : Frame Buffer Objects, Anisotropic texture filtering, Floating point textures
● Particle Systems ● (^) Point Sprites ● Vertex Buffer Object ● Environment Mapping (reflections) ● (^) Cube mapping ● Frame buffer object ● Mesh Rendering ● Occlusion Query ● MSAA
● Lens flares, blooms ● Imposters ● Particle Systems
● If r, u are the camera right and up vector ● p is particle position (center) ● h is half height of particle p+ h (r+u) r u p- h (r+u) p+ h (u-r) p+ h (r-u)
● Constrained to rotate about an axis ● (^) Fixed Up vector ● Determine right vector using cross product ● (^) Right = Up x look
● (^) Star Trek 2 ● (^1983) William Reeves Particle Systems
Given vector field v(x,y,z) update particle positions by Or a higher order integration scheme (RK4) See page 560-562 in book. p i 1 = p i v i t
● Rank 2 tensor can be represented as a matrix ● Use this matrix to generate a texture matrix Particles rendered with various texture matrices and wrap modes
● Alpha Blending glEnable(GL_BLEND) ● (^) Semitransparent (Smoke, Water, Fog) ● (^) glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); ● Additive (Fire, Sparks) ● (^) glBlendFunc(GL_SRC_ALPHA, GL_ONE); ● Depth ● (^) Sort back-to-front ● (^) Expensive for systems with many particles ● Disable Z buffer writes ● (^) glDepthMask(GL_FALSE)
● Render fully opaque objects first ● Render semitransparent objects (alpha < 1) glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); Back-to-front rendering Front-to-back rendering ● Disabling Z-buffer writes will help, but results won't always be correct