Loading meshes using Assimp in OpenGL

I have been catching up on OpenGL 4.4 lately and realized that there are few working examples on the newer versions of OpenGL. The following code uses Assimp, GLFW and GLEW to load and render all supported Assimp formats and requires OpenGL 3.0 or above.

You will be required to set up an OpenGL context, I will presume that you have the knowledge to do that (if not, I can recommend this tutorial from opengl-tutorial.org).

To use the Mesh class, this is all that is required:

Mesh *mesh = new Mesh("filename.dae");
while (!glfwWindowShouldClose(window)) {
delete m;

The combined source and example shaders can be downloaded at the bottom of this page.

Nighttime view of Norsk Tipping

New job and new opportunities

This has been a very exciting winter. I left my job as an IT Consultant in Oslo and started an internship at Norsk Tipping. The 1st of April, I got hired as a concept developer. What does a concept developer do, you might ask? First of all, it is a lot of prototyping. I spend a large amount of time creating and testing out new game concepts and services. I have realized that I’m very lucky to be able to play around with a lot of different technologies and get back to things like OpenGL, GLSL and Augmented Reality!

Normal days at work

Normal days at work

In the beginning of January, I shut down my company; Fallen Leaves Interactive as it was more inactive than interactive to be honest (most of us was too busy to get work done). During the last couple of months, my will to create has returned. By getting back into game development, I have realized that this is what I need to and love working on. This realization has led me to start developing on my free time again and thinking about publishing some of it when I feel it is polished enough.

As I now have the economy to support this, I can take the time and effort to follow my dreams and it feels good! More code examples and tutorials will be coming up as it gets written, the more I can share with you, the better!

Winter morning

Winter is coming

The first day of Christmas vacation; it feels very strange. This will be the longest vacation that I have had in years and I’m really looking forward to it. I’m planning on spending time with my family and friends while doing everything that I don’t usually have time for.

I did start my new job this month and it is awesome! Developing games and playing with technology while still getting paid, it can’t get any better than that.

I want to wish you all a merry Christmas and a happy new year!

See you on the other side.

Portfolio update and site redesign

I apologize my absence lately, been very busy moving and starting my new job. Has been thinking about redesigning the site for a while and when WordPress released a default theme that had 90% of what I wanted, it was an easy choice to just go for it. Finally got to updating my portfolio as well, you can check it out here.