article in Tech
programming
OpenGL Notes
The Open Toolkit Library | OpenTK - The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL and OpenAL.
Repeat a texture in OpenGL
When you want to repeat a small texture on a large quad without drawing the quads yourself.
Bind to the texture as usual and make sure you aren't clamping.
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
Then when drawing your geometry, for instance a quad:
glBegin(GL_QUADS);
glTexCoord2f(0, 0); glVertex3f(-1, -1, -0.5f);
glTexCoord2f(32, 0); glVertex3f( 1, -1, -0.5f);
glTexCoord2f(32, 32); glVertex3f( 1, 1, -0.5f);
glTexCoord2f(0, 32); glVertex3f(-1, 1, -0.5f);
glEnd();
The glTexCoord2f() controls how many times the texture is repeated. Image coordinates are typically from 0 to 1 in OpenGL. So the above calls repeat the texture 32 times in both the x and y directions.
Save screen to disk
OpenGL - Writing the framebuffer to disk
Libraries and Toolkits
OpenGL for Windows by Silicon Graphics - Download
ODE - Open Dynamics Engine - open source, high performance library for simulating rigid body dynamics
OpenAL - Cross-Platform 3D Audio
GLUT for WIN32
GLFW - An OpenGL library - GLFW is an Open Source, multi-platform library for creating windows with OpenGL contexts and managing input and events. It is easy to integrate into existing applications and does not lay claim to the main loop.
glfw/glfw - A multi-platform library for OpenGL, window and input
.
SDL - Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
OpenSceneGraph - open source C++ scene graph.
The OpenGL Extension Wrangler Library
GLUT GLUT - The OpenGL Utility Toolkit
OglExt - A LGPL library for accessing OpenGL extensions.
GLEW: The OpenGL Extension Wrangler Library
AntTweakBar GUI library to tweak parameters of your OpenGL and DirectX programs [AntTweakBar] - C/C++ variables can be bound to graphical controls on Linux,Windows,OSX with examples of GLFW,SDL,GLUT,SFML, and DirectX.
AntTweakBar - Perl bindings for AntTweakBar - metacpan.org PerlGameDev/Alien-AntTweakBar - perl binding!
Modeling and 3d tools
Blender - an open source tool for modeling, animation, etc
Web Resources
Image Morphing based on this work
Thin Plate Spline editor - an example program in C++
NeHe OpenGL Tutorials
stereo geometry in OpenGL
OpenGL Redbook Samples
SDL
SDL - Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
WebGL - OpenGL in your browser
WebGL canvas and pretty things. - Dave Horner's Website
WebGL - OpenGL ES 2.0 for the Web
WebGL Samples/Demos and other bits at Vladimir Vuki?evi?
The Lessons | Learning WebGL - The first ten are based on the well-known NeHe OpenGL tutorials, but I’ve diverged since then. Here are the ones so far.
Geographic Data Visualization Platform meant for the web.
WebGL Globe - Chrome experiment by Google Data Art Team. webgl-globe - Geographic Data Visualization Platform meant for the web. - Google Project Hosting
Does My Browser Support WebGL?
Created: 2005-04-04 13:29:04
Modified: 2014-08-09 13:20:32