-
Unity little toy shaders
Posted on 1 Oct 2020 - 19:00
Here’s a small but growing collection of little Unity toys with more or less typical mathematical tricks implemented in a fragment shader. What’s impressive is, as often happens in maths, the simplicity of most formulas when implemented. I’ve always found coding things that have a visual output a really good way of understanding maths. I adapted these old snippets I made in Processing to ShaderLab/CG. I intentionally shared them in their most basic form to leave room to creativity.
-
Conquer and divide: how social media platforms flipped the strategy for profit
Posted on 1 Oct 2020 - 10:15
You surely have heard the phrase “divide and conquer” (or “divide and rule”). Divide and conquer comes from the latin words “divide et impera” attributed to Philip II of Macedon but famously used by Julius Caesar, who used them to describe his main war strategy. Julius Caesar was in fact a master in dividing and ruling and, despite how much good his conquests brought is questionable, the ultimate goal was to unite all single states into one cohesive Republic.
-
Fractal Totem
Posted on 1 Oct 2017 - 18:46
Fractals. One can only admire their intrinsic beauty for they represent one of the most popular ways to turn math into pleasing visuals. These mathematical creatures make many intriguing, mind blowing appearances in nature. There are several kinds of fractals that are characterized by the method used to generate them and one of the most notorious is without doubt the Julia Mandelbrot Set (find a Unity/shader implementation here but it is far from being the only interesting example;
-
Delayed code execution with Unity's coroutines
Posted on 1 Feb 2017 - 18:10
Sometimes a chunk of code must be executed one or more frames ahead, sometimes because it’s just convenient to do so, other times because your code simply wouldn’t work otherwise. Mind that if you are in this situation, you should first ask yourself why. In fact, having to delay your code of one or more frames can be a symptom of engineering mistakes. But it may not depend on you. I had these situations in the past and the cause were most of the times external libraries or code from someone who left the company.