Welcome!

OpenGL ES Tutorial for Android – Part VI – Textures

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

Last tutorial we worked a bit more on meshes and we have also talked about adding colors to our mesh. The most common way of adding colors to your mesh is to add a texture. There is a couple of different steps involved with adding a texture to the mesh I will try to go through them all and explain the basics about them. Read the rest of this entry »

OpenGL ES Tutorial for Android – Part V – More on Meshes

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

I have a feeling that some of you have tried my tutorials and then thought “This is a 3D tutorial, but why is everything in 2D?”. So in this tutorial we will make some real 3D meshes. This is also necessary for the following tutorials.

When I started I had problems with finding out how to programmatic make different meshes like cubes, cones and so on. I needed this so I easy easy could put my scenes together. So this tutorial will show how to make some of the basic primitives. They might not be the most effective way of creating them but it is a way of doing them.

Starting point will be from the source of the second tutorial. I will show you plane and cube and then give you a couple of hint for additional primitives. Read the rest of this entry »

OpenGL ES Tutorial for Android – Part IV – Adding colors

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

Last tutorial was about transformations. This tutorial will be a short one. I’m going to talk about adding color to your mesh. I will continue with the source code from tutorial II. Read the rest of this entry »

OpenGL ES Tutorial for Android – Part III – Transformations

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

Last tutorial was about building your polygons. This tutorial is all about transformations, how to move the polygons around. I will continue this tutorial from where the previous ended so you can use that source code or make a copy of it.

I am not going to bore you with a lot of mathematics but I believe it is important to know that when OpenGL render a mesh it multiplies all vertices with a matrix. All the transformations you do are about manipulating the vertices in different ways by modifying this matrix. You can think of the matrix as a paper and that you never move the pen before you start to draw. You always draw in the center. But by doing a translation on the matrix you are moving the paper and also the center. A rotation is like rotating the paper around the center. And a scale is a bit harder to visualize with the paper view but it is like changing the unit size regarding to how you translate your meshes. Usually you talk about transformations according to the mesh not the world, but it is still important to know about. Read the rest of this entry »

OpenGL ES Tutorial for Android – Part II – Building a polygon

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

Previous tutorial was all about setting up the GLSurfaceView. Be sure to read it beacuse it’s a really importent one to be able to continue. Read the rest of this entry »

OpenGL ES Tutorial for Android – Part I – Setting up the view

February 1st, 2012

This tutorial is original posted at Jayway’s Developer Blog and can be found here: Jayway’s Developer Blog

I can’t always remember where I found particular info so I might not always be able to give you the right reference. If you feel that I have borrowed stuff from you but have forgotten to add you as a reference, please e-mail me.

So, let’s start.

In this tutorial I will show you how to set up your OpenGL ES view that’s always a good place to start. Read the rest of this entry »

ikeahackers.net

January 4th, 2012

This site gives me a lot of ideas.

IKEA Hackers

African Bull Frog Ant Crusher

December 22nd, 2011

I really have to share this. One of the funniest video clip I have seen this year.

12 Things Happy People Do Differently

December 16th, 2011

I got this link from a co-worker and I’m happy to say that most of them reflects on how I perceive my self. The rest? Well I guess I can work more on those :)

12 Things Happy People Do Differently

Hello world!

December 12th, 2011

I just reinstalled my blog and will write about everything that pops into my mind. Some of the recurring subjects will be: mobile devices, general programming, opengl and how stupid drivers are :)