Category: Programming

  • Physically Based Rendering and lighting models in Unity3D

    Physically Based Rendering and lighting models in Unity3D

    Part 1, Part 2, Part 3, Part 4, Part 5, [download the Unity3D package] Why is it colder at the poles and hotter on the equator? This question, which seems completely unrelated to shaders, is actually fundamental to understand how lighting models work. As explained in the previous part of this tutorial, surface shaders use a mathematical model…

  • Surface shaders in Unity3D

    Part 1, Part 2, Part 3, Part 4, Part 5 This is the second part of a series of posts on Unity3D shaders, and it will focus on surface shaders. As previously mentioned, shaders are special programs written in a language called Cg / HLSL which is executed by GPUs. They are used to draw triangles of your 3D…

  • A gentle introduction to shaders in Unity3D

    Part 1, Part 2, Part 3, Part 4, Part 5 We can safely say that Unity3D has made game development easier for a lot of people. Something where it still has a long way to go is, with no doubt, shader coding. Often surrounded by mystery, a shader is a program specifically made to run on a GPU.…

  • How to retrieve all the images from a website

    Few weeks ago I posted on Twitter few rather bizarre screenshots. A composition of all the submissions for #ScreenshotSaturday, loosely ordered by colour. In this series of posts I’ll briefly explain how I did that using Python. You can download the original pictures (16Mb, 71Mb, 40Mb, 13Mb) here.

  • Retro CRT distortion effect in Flixel 2.5

    A couple of weeks ago I started using the Flixel Framework, a set of class and libraries in ActionScript3 to effectively design videogames in Flash. Flixel is suggested to all the programmers who want to create games with a retro-style flavour. Although there is a huge support community that actively works on Flixel, finding the…