Categories
February 2012 S M T W T F S « Nov 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Tags
2d algorithm beta better way blog blogging bsp buffer bunnyblogger C++ client constructor data demo destructor enhancement example exception external for glew glsl intermediate mode lightmap loop objects OpenGL packing performance populate rbsptree sdl separator shortening simple snippet string.join structure throw tree unresolved vbo vertex will it happen wysiwygGitHub Projects
Category Archives: Graphics
Making Color From Alpha, Hue, Saturation and Brightness
I find myself wanting to do this sometimes, so here’s a bit of code (I’m sure I stole this code from somewhere else);
Posted in Graphics
Tagged ahsb, alpha, brightness, color, convert, hue, rgb, saturation, snippet
Leave a comment
RBSP Tree for Lightmap packing
For fun, and for the purpose of making a batch texture that can store characters for fonts, I have created a little tree based off this tutorial by BlackPawn. Basically, the idea here is to partition the original rectangle in … Continue reading
2D in OpenGL
After some experimentation, I have finally come to a point where I have written some code that does scaling, rotation and alpha on images that I want to display on the screen. Although the concept of drawing 2D in OpenGL … Continue reading
Vertex Buffer Objects
In my last post I mentioned that if you wanted to draw a large number of things on a screen, you need VBOs. Well, honestly at the time, I only knew what it was but never touched it before. VBOs … Continue reading
Posted in Graphics, Programming
Tagged buffer, enhancement, intermediate mode, objects, OpenGL, performance, vbo, vertex
Leave a comment
Playing with GLSL
After puzzling some time over the tutorials in Lighthouse3D, I finally learned how to prepare a GLSL shader and use it in an OpenGL render. In the beginning I thought a shader could be used on a particular set of … Continue reading
Posted in Graphics, Programming
Tagged example, glsl, intermediate mode, OpenGL, simple
Leave a comment