A helloworld kernel module

Today, I experimented with the linux kernel modules for the first time and I’ve written a simple module that prints a message (helloworld :P) every time that someone reads from the /dev/ktest (a custom character device) and counts how many times the device was opened for reading.

Continue reading A helloworld kernel module

Morphing test

So far, I hadn’t try to morph 3D objects to other 3D objects and I thought it’s something tricky to do. Today, I realized how simple and easy it is when I wrote this small test:

If you carefully choose the 3D models to have the same number of polygons, and to meet a few topological requirements, then you only need to interpolate the values of the meshes’ vectors, normals (and materials, textures, whatever you need) and draw the intermediate mesh every time. As interpolation parameter you can choose the values of a positive function that varies from 0 to 1 and backwards (I used (sin(msecs/factor) + 1)/2) to have that continuously changing effect. And that’s all!

The test is here: https://bitbucket.org/eleni-hikiko/morphing and it includes an obj with a scene with 3 meshes that meet the morphing requirements  (I only used the first two meshes here).

[Updated] Enable the new (faster) Unity 7 Low Graphics mode from unity-control-center

The following change is under review. It might look different when we release it!

Continue reading [Updated] Enable the new (faster) Unity 7 Low Graphics mode from unity-control-center

The process to backport a compiz bug fix on Trusty (current LTS release: Xenial).

Recently, I had to follow the SRU process to add a Compiz bug fix on Trusty for the 1st time. It’s useful to have the detailed steps somewhere so.. here’s what I did:

Continue reading The process to backport a compiz bug fix on Trusty (current LTS release: Xenial).

Compiz Introduction and Demo Extra: HOWTO Build the Ubuntu Desktop (the script way)

Step 1: Create the necessary directories and scripts

Continue reading Compiz Introduction and Demo Extra: HOWTO Build the Ubuntu Desktop (the script way)