title: “Show system temperature on a mini i2c (9E6018A0) screen via Arduino Nano”
-
Save and load mesh data in Unity
Posted on 1 Oct 2020 - 19:06
Don’t we all have a hell of a fun generating meshes in Unity? The problems are: once you generated or changed an existing mesh, how do you keep it? you probably found out by now that a mesh contains fields that are not marked as Serializable The following comes handy in all situations where a generated mesh is rather complex and loading it from disk is more efficient than re-generating.
-
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.
-
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.