Mariusz Bartosik's website

Graphics programming, demoscene and book reviews

Ray Tracing in One Weekend book cover

Ray Tracing in One Weekend

Wouldn’t it be nice to create a small ray tracer as a weekend project? Well, that’s exactly the idea behind this mini e-book. After implementing all the features described in it, you will be able to create the image from the cover.

Project directory

Directory Structure for a C++ Project

When you work on some bigger project, it is important to properly organize its directory structure. Most of the time, you have to prepare project directory structure yourself, as an IDE will create only a basic solution for you.

Demo engine building blocks

Anatomy of a Demo Framework

It’s time to look inside the main executable file, and plan what we want to put there. The architecture of a demo framework is a bit similar to a game engine one. In fact, there are demos created with tools like Unity 3D.

File structure of a demo

File Structure of a Demo

Before we begin to sketch the internal structure of our demo, let’s take a look on how to organise files in the final archive. You will also need to decide if you want to protect the data files (textures, the soundtrack and so on) or make them freely accessible to others. Let’s review some real life examples.