Updating to SDL 1.2.11

January 25th, 2012 / posted in SDL_image / / No Comments »

 

“dyld: Library not loaded: @rpath/SDL_image.framework/Versions/A/SDL_image”, “Reason: image not found”

 

If you updated to SDL_image 1.2.11 on Mac OS X and saw the nasty linkage error from above after running your application, then here is a solution for you poor fellow developer.

 

Read the rest of this entry »

White textures in OpenGL

October 18th, 2011 / posted in Game development, OpenGL, Texture rendering / / No Comments »

 

I’m developing a game using plain OpenGL and SDL without the help of a consecrated game engine and because of that I often encounter errors related to graphics rendering. One of the most annoying errors is when a texture renders plain white. Most of these bugs are due to OpenGL’ state not being correctly set up, but even knowing that I found myself scratching my head for hours. Over time I encountered a couple of different incarnations of this bug. Since I didn’t find this subject thoroughly covered on the internet I thought it would be a good idea to write a post about it so that I can look it up the next time such a bug appears. I hope this little article spares someone a couple of white hairs out there on the internet too.

 

Read the rest of this entry »

Texture objects and texture image units in OpenGL

October 1st, 2011 / posted in Game development, OpenGL, Texture rendering / / No Comments »

 

One thing I found somehow difficult to get my head around and caused lots of weird bugs was the way textures work in OpenGL. Even when they appeared to work, at some point the textures failed to render correctly because the OpenGL state was set up wrongly due to my lack of understanding of the key texture rendering concepts. So I decided to clear things up for me a little bit and write them down once and for all. I hope someone else will finds this useful too.

 

Read the rest of this entry »

Welcome

September 21st, 2011 / posted in Uncategorized / / No Comments »

 

Hello and welcome to The One Man Inc. Finally got the site and blog launched with the help of our friends from Creatiph Graphics.

 

For now the site we’ll act as a blog in which I’ll write about different aspects and difficulties I encounter while developing my game.

 

You can find more about myself in the About page.

 

So, bear with me in my quest in game programming.