RSSAmplifier

Blog

TP

Have you tried turning it off and on again?

tessapower.xyzRSS feed ↗10 posts

Latest posts

Creating Realistic Terrain by Modelling the Physics of Hydraulic Erosion

In this post, we’ll explore how to significantly enhance procedurally generated terrain using hydraulic erosion. By simulating the natural processes that shape real-world landscapes, we can transform basic noise-generated height maps into believable terrains that exhibit realistic features like river valleys, sediment deposits, and asymmetric slopes.

sfx: A hot-reloading, locally-hosted shader playground

I was working on a WebGL project that needed a water shader, and I wanted to see results immediately as I tweaked the GLSL. Tools like Shadertoy, glsl.app, and The Book of Shaders’ editor exist, but they force you to use online editors and require accounts to save your work.

Finding memory leaks with Valgrind and Top

In this post, I’m going to cover my go-to workflow for tracking down memory leaks in C++. If your program’s memory usage is climbing and it shouldn’t be, two tools will get you to the answer fast: Top tells you if you’re leaking, and Valgrind tells you where.

Pseudo-random number generators and randomized testing

In this post, I’m going to cover two topics that are more connected than they first appear: how pseudo-random number generators (PRNGs) work under the hood, and how to use that knowledge to write better, reproducible randomized tests. This started as a lightning talk I gave and I decided to expand it into a full article.

Repurposing C++ iterators as geometric generators

In this post, I’m going to cover a slightly unusual use case for custom C++ iterators. We are going to repurpose a C++ iterator as a generator to represent the geometric properties of circles and rectangles. This novel approach evolved while I was working on an interesting computer vision problem, and had a really nice effect on the memory footprint and program efficiency as you will soon see!

Back to basics: using GoogleTest without CMake for C++ projects

In this post, I’m going to explain how I went back to basics and used GoogleTest as a standalone library without CMake for small-scale C++ projects.

Cellular Automata—a JavaScript implementation of Conway’s Game of Life

I took a short detour from C++ to learn Javascript by working through the book Eloquent Javascript. It’s a delightful, well written book that introduces the language and offers exercises at the end of each chapter—one of the more interesting exercises was implementing Conway’s Game of Life.

A fast, modern static site—authored in Markdown, deployed to AWS

In this post, I’m going to talk about how I set up and deployed a static site that’s fast, modern, serverless, and written in Markdown to AWS. And it cost me $0.00.

Automating C++ unit tests with GitHub Actions, MSBuild, and VS Test Platform

In a previous post, I created unit tests for a console app using Visual Studio’s Native C++ Framework and Test Platform. The process of running the tests with VSTest.console.exe in Terminal was rather tedious, so I decided to automate the process using GitHub Actions.

Unit testing a C++ console app with the Native test framework in Visual Studio

In this post, I’ll show you how to set up and run unit tests for a native C++ console app using Visual Studio 2019’s built-in testing tools. I’ll cover setting up the test project, writing tests, and running them in Terminal. We’ll also look at some pitfalls I encountered along the way.