acervin.com
Albert Cervin -- About Me
https://acervin.com/about
My name is Albert Cervin and I am currently working as a software engineer in the Frostbite rendering team, where we create fast and shiny pixels :). Currently living in Stockholm, Sweden. My main interests are game programming, computer graphics and also programming and computers in general. I spend my spare time working with a lot of small side-projects and some of them can be seen in the portfolio.
acervin.com
Albert Cervin -- Portfolio
https://acervin.com/portfolio
Crowd plugin for Maya. Modeling and Animation (Part 2). Modeling and Animation (Part 1). Monte Carlo (Stochastic) Ray Tracer.
acervin.com
Albert Cervin -- Updated portfolio
https://acervin.com/blog/2011/sep/08-updated_portfolio
I have updated my portfolio. To include some newer and also current projects. Be shure to check it out! In the very near future this blog will also serve as a development blog for the game engine we are developing so be shure to check back from time to time if you are interested. Blog comments powered by Disqus.
acervin.com
Albert Cervin -- Why you should (or should you?) roll your own memory manager (Part 1)
https://acervin.com/blog/2011/oct/06-memory_manager
Why you should (or should you? Roll your own memory manager (Part 1). Do you write performance-critical applications? Do you feel that the built in memory manager in C/C does not do the trick for you? Then this article might be of interest :). All optimizations must however be based on real data so if a custom memory manager does not improve the performance of your application (or maybe some other aspect), do not use it! Lets you specify a memory address where you want to place your objects. The object d...
acervin.com
Albert Cervin -- Hello World (again)
https://acervin.com/blog/2011/aug/10-hello_again
Welcome to my new homepage where I will blog a lot more than I did on my old page, I promise. My blog posts will be about computers, programming, software, computer graphics and to some extent life in general :). My first tip is the software that has actually created this page: nanoc. But now, why would you want a static site in the 21st century? So, for a small to medium sized website it can be very suitable. Other static site generators are for example Jekyll. Blog comments powered by Disqus.
acervin.com
Albert Cervin -- Adventures in the HTML5 history API
https://acervin.com/blog/2011/sep/08-adventures_in_html5
Adventures in the HTML5 history API. When developing drinkmixen we decided that we needed to have a javascript slider for pagination (like the GitHub tree slider. The difference is that our slider is used in pagination. To accomplish this we had to look into the HTML5 history API. This is not a HTML API per se but a JavaScript interface. The main idea is that the click on a page link, next or previous button is intercepted. The JavaScript method. The main idea looks like this (with jQuery):. But since we...
acervin.com
Albert Cervin -- Integrating Lua (Part 2)
https://acervin.com/blog/2012/jan/22-lua_part2
Integrating Lua (Part 2). In the last tutorial we saw that it was possible to call Lua functions from C (and C ). It is also possible to define functions in C that is callable from Lua. All C functions that will be callable from Lua follows the same pattern and must have a prototype as specified by. Lua CFunction) (lua State *L);. Defining our C function. Our C function will be a simple add function. It is defined as. Lua add(lua State *L) { / Check the number of arguments. Argc = lua gettop(L); if.
acervin.com
Albert Cervin -- How to roll your own memory management system - Part 2
https://acervin.com/blog/2011/oct/12-memory_manager_2
How to roll your own memory management system - Part 2. In this post, I am going to start talking about implementation of the actual allocators. This post will in particular deal with the simplest kind of allocator, the stack allocator. A simple Allocator interface. The interface will look something like this. Allocate(uint32 size, uint32 align) = 0. Uint32 allocated size( void. Uint32 get free() = 0. Uint32 get used() = 0. But wait, how do we actually obtain memory from the OS? That is correct. It i...
acervin.com
Albert Cervin -- A gentle introduction to integrating Lua
https://acervin.com/blog/2011/dec/05-simple_lua_intro
A gentle introduction to integrating Lua. To introduce a scripting language into your project can be a huge boost in productivity. Interpreted languages run slower than compiled C/C code but the win you make in productivity and rapid development will be larger. This series will NOT be an introduction to Lua as a language but rather its C API. For a reference of the language, refer to lua.org. A simple hello world. To start, we create a simple lua script that does nothing useful at all but nonetheless.