blShapeSuperToroid — Construct and render super toroid shapes and height maps in opengl

This entry is part 6 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction To continue with the super quadrics theme, this article presents a simple class to construct and render super toroids shapes and height maps. As an example, the following snippet, which uses sfml for the windowing part and the blImageAPI for the webcam part, generates two super toroids, and shows…

Continue reading

blShapeSuperEllipsoid — Construct and render super ellipsoid shapes and height maps in opengl

This entry is part 5 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction How can a shape API be taken seriously if it doesn’t provide an easy way to generate super quadrics and super quadrics height maps. So as part of my blShapeAPI series, in this article, I introduce a very simple but powerful class that can generate super ellipsoids and super…

Continue reading

blShapeCylinder and blShapeSphere — Construct and render static or dynamic conical and spherical surfaces in opengl

This entry is part 4 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapeCylinder and blShapeSphere, which are derived from blShapeQuadric and build conical and spherical surfaces. Just like blShapeQuadric, these shapes can be static or dynamic, and with only a few lines of code can produce astonishing results.

Continue reading

blShapePartialDisk — Construct and render static or dynamic partial disk shapes in opengl

This entry is part 3 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapePartialDisk, which is derived from blShapeQuadric and builds a partial disk. Just like blShapeQuadric, this shape can be static or dynamic, and with only a few lines of code can produce astonishing results. Here’s a simple example that…

Continue reading

blShapeQuadric — Construct and render static or dynamic Quadrics shapes in opengl

This entry is part 2 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction As part of the blShapeAPI series, in this article I present blShapeQuadric, a class which will serve as the basic framework with which to build Quadric shapes. Quadric shapes are simple shapes that have a virtually unlimited number of applications. Not only are they used in all the modern…

Continue reading

blShapeAPI — A simple c++ shape API to construct and render static and live shapes in opengl

This entry is part 1 of 6 in the series blShapeAPI -- BarbatoLabs Shape API

Introduction When first playing with opengl, everyone starts off with what is known as “direct-mode”, using the infamous glBegin() and glEnd() functions. They are very easy to use and produce much more readable code, at least to the beginners’ eyes. To draw a rectangle in direct mode, one would do the…

Continue reading

blTexture — Load an IplImage into an opengl texture and create webcam and video textures using the blImageAPI

This entry is part 8 of 17 in the series blImageAPI -- BarbatoLabs Image API

Introduction Today I introduce a simple class that will help us load IplImage images into opengl textures. This simple class, as I will continue to show you in later posts, provides us with a very easy and powerful method to intermix images, videos and 3d graphics. In the end, you’ll…

Continue reading

Using sfml library within QTCreator in windows

This is a quick post to show how to use the sfml library within our beloved QTCreator. The sfml library is a very clean, cross-platform and easy to use library for windowing, opengl, networking, audio and more. Check it out it’s really good. It turns out it’s really easy to…

Continue reading