This tutorial will introduce the Transformation Matrix, one of the standard technique to translate, rotate and scale 2D graphics. The first part of this series, A Gentle Primer on 2D Rotations, explaines some of the Maths that is be used here.
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.
This tutorial explains how to pass arrays to shaders in Unity. This feature has been present for a long time, but is mostly undocumented. Unity 5.4.0 Beta 1 will introduce a proper API to pass arrays to shaders; this technique however will work with any previous version.
An exoplanet is a planet that orbits another star other than the Sun; since 1988, approximately 2000 of them have been confirmed. This post, inspired by Ethan Kruse‘s Kepler Orrery IV, visualises and animates exoplanets, together with their habitable zones. The data come from the NASA Exoplanet Archive and it only includes the confirmed exoplanets with known orbits and temperature. You can find a complete list of all the exoplanets here.
Before introducing the exoplanetary orreries, this is the inner part of our solar system.
Python aims to be an elegant and expressive language; this post includes its top 5 hidden features:
- List slicing
- For…else syntax
- Yield statement
- Multiple assignments
- Argument unpacking
The term hidden is loosely used to indicate features which are generally unique to Python, or not very well known. I covered the most interesting Easter eggs which are really hidden in Python in this post. Continue reading