Category: Maths

  • A Gentle Primer on 2D Rotations

    A Gentle Primer on 2D Rotations

    This tutorial will introduce rotations, translations and other affine transformations. This knowledge is essential not just for 2D games, but also to understand Quaternions and transformations in 3D games. This first post of the series is a gentle primer on 2D rotations.

  • The Secrets of Colour Interpolation

    The Secrets of Colour Interpolation

    This post discusses about the tricky problem of colour interpolation, and explores possible solutions. Many software and engines offer read-to-use functions to interpolate colours. In Unity, for instance, Color.Lerp is available and does its job pretty nicely. Use the interactive swatch below to see how Color.Lerp works. There’s nothing wrong in using these functions, as long as you know…

  • Interactive Graphs in the Browser

    Interactive Graphs in the Browser

    Having worked both as a teacher and an artist, I know how important data visualisation is. This tutorial will teach you to create interactive network graphs with Python and JavaScript. You can have a go by dragging the nodes of the graph below… You can find a high resolution version of the melancoil tree (2000x2000px, first 1000 numbers)…

  • Recreational Maths in Python

    Recreational Maths in Python

    This post is for all the developers and mathematicians out there that are curious to explore and visualize the bizarre properties of numbers. Although Maths plays an important role in today’s technology, many people likes to abuse it for recreational purposes. Part of the appeal of Recreational Maths lies in the challenge to discover something new. Despite what many believe, finding mathematical patterns is very easy; it’s…

  • How to generate Gaussian distributed numbers

    How to generate Gaussian distributed numbers

    In a previous post I’ve introduced the Gaussian distribution and how it is commonly found in the vast majority of natural phenomenon. It can be used to dramatically improve some aspect of your game, such as procedural terrain generation, enemy health and attack power, etc. Despite being so ubiquitous, very few gaming frameworks offer functions to generate numbers which follow…

  • Understanding the Gaussian distribution

    Understanding the Gaussian distribution

    Randomness is so present in our reality that we are used to taking it for granted. Most of the phenomena which surround us have been generated by random processes. Hence, our brain is very good at recognising these random patterns. And it is even better at spotting phenomena that should be random but they actually aren’t. And this…

  • Protected: Practical trigonometry for 2D games

    There is no excerpt because this is a protected post.

  • An Introduction to Mie Theory

    An Introduction to Mie Theory

    To view this content, you must be a member of Alan Zucconi’s Patreon at $5 or more Unlock with PatreonAlready a qualifying Patreon member? Refresh to access this content.