Ray Tracing in a Weekend Part 2 - The vec3 class

The vec3 class In part 1 I made a simple image by assigning rgb values to individual variables in a loop across the x- and y-coordinates. This example produces the same image, but introduces the vec3 class used to perform calculations with 3-dimensional vectors and access them as x, y, z-coordinates or r, g, b-color values. The code below is complete, but feel free to download the complete repo from https://github.

Ray Tracing in a Weekend Part 1 - Intro and First Simple Image

Introduction In the next few posts I want to document my journey through Peter Shirley’s book Ray Tracing in a Weekend and its two following volumes Ray Tracing - The Next Week and Ray Tracing - The Rest of Your Life (now available for free). I found the first book on Amazon Kindle quite a long time ago, but then I always had to put it on the backburner because I had to finish other courses first.

Lenia – Mathematical Life Forms

Lenia (from Latin lenis, “smooth”) is a cellular automaton, like Conway’s Game of Life, but with continuous states and continuous space-time. It supports a great diversity of complex autonomous patterns or “lifeforms” bearing resemblance to real-world microscopic organisms. More than 400 species in 18 families have been identified, many discovered via interactive evolutionary computation.

Paper: arxiv.org/abs/1812.05433

Code: github.com/Chakazul/Lenia


Testing Jupyter

Testing Jupyter

This is a simple test to convert a designated area in a Jupyter notebook to markdown, and publish it to this site automatically.

print("Hello World!")
Hello World!

Perform some calculation

# And a simple python code:
f = lambda x: x**2 + 1
print("f(x) for x from 0 to 4:", *map(f, range(5)))
f(x) for x from 0 to 4: 1 2 5 10 17