Portfolio

Current project

Vulkan Schnee Engine

A game engine built on Vulkan and OpenXR with Bullet 3 physics, developed since September 2024.

This is a gallery for all the bugs and progress on the engine since the start in September 2024. The project is a game engine built on Vulkan, OpenXR, and Jolt as its physics engine.
  • Vulkan
  • OpenXR
  • Jolt
  • C++
  • CMake
  • Blender
So It Begins
So It Begins
Flat Rat Projection Matrix Wrong
Flat Rat Projection Matrix Wrong
I start learning Vulkan with a desktop renderer because that is the object of interest. It has rudimentary hierarchical transforms. They are done without a proper scene tree and only held together with duct tape and hot glue.
Start With The Desktop Renderer. The rats are attached to the potato which is rotating
Start With The Desktop Renderer. The rats are attached to the potato which is rotating
I start investigating mesh shading as my focus started to shift over to rendering VR with mesh shading. To get started I try to get a simple object made of multiple meshlets on the screen which was this can from polyhaven
Meshlet Generation Is Breathing
Meshlet Generation Is Breathing
Projection And Model Matrix Broken
Projection And Model Matrix Broken
With mesh shading working okayish at least I start focusing on implementing a lighting model which doesn't eat up a huge part of my nonexistent frame times on a VR headset
Lightmap UV displayed on Lightmap in blender
Lightmap UV displayed on Lightmap in blender
This is where I find out that PNG doesnt support more than 16 bit color depth in blender
This is where I find out that PNG doesnt support more than 16 bit color depth in blender
Light baking tool in Blender is working
Light baking tool in Blender is working
Light baking UV correct, bit depth wrong
Light baking UV correct, bit depth wrong
To export my light baking data as well as other settings I start implementing a blender editor and exporter plugin so that the data is directly embedded in the gltf files as a vendor extension.
Blender Export Plugin
Blender Export Plugin
Blender Editor Plugin
Blender Editor Plugin
Objects which have many primitives tend to break the mesh shader hard because the meshlets are often 3-8 vertices large causing the mesh shader to starve for work. Different colors are different meshlets
Issues With Meshlets And Small Objects
Issues With Meshlets And Small Objects
Meshlet rendering is working
Meshlet rendering is working
Experiments with Spherical Harmonics rendering for dynamic bounce lighting data
Experiments with Spherical Harmonics rendering for dynamic bounce lighting data
The light maps here are really primitive. Its a combined image from blender where all the texture information is baked into one image which looks good as long as you don't intend to use a tonemapper any time soon.
Lightmaps Working For The First Time
Lightmaps Working For The First Time
Lightmaps Are Working
Lightmaps Are Working
With light maps implemented I start to look into handling dynamic objects. That is something I haven't spend time thinking about. With that I implemented a rudimentary material system which runs on a single draw per pipeline which the material needs to render on.
Multi-material support
Multi-material support
Direct Material Export In Engine
Direct Material Export In Engine
Direct Material Export Scene In Blender
Direct Material Export Scene In Blender
On new year I finally get bullet 3 working. Here only where I simulate a cube falling onto a plane where the data is read back into a file because the renderer is broken. So much fixing the renderer got to me and I start the physics engine side quest
Physics Working Falling Cube Debug
Physics Working Falling Cube Debug
Physics Is Working Spawn One Cube Per Frame
Physics Is Working Spawn One Cube Per Frame
Here the renderer rework is "done" as in the infrastructure for moving data is done. The bug fixing is not. The rework includes that a modularized rendering pipeline where I can chain stages one after another because I want to implement culling which just wasn't viable with the previous pipeline
Triangle Index Order Fail
Triangle Index Order Fail
Meshlet Indices Are Broken Yet Again
Meshlet Indices Are Broken Yet Again
Reading With Wrong Buffer Offsets
Reading With Wrong Buffer Offsets
Meshlet Indices Are Working
Meshlet Indices Are Working
Subpixel triangle culling fail
Subpixel triangle culling fail
With frustum and sub-pixel culling working half decent I was thinking that I want to implement HiZ culling. That turned out to be a beast and a half when done in stereo rendering especially because I don't fully understand what I am doing with compute shaders yet
Culling Is Broken Yet Again
Culling Is Broken Yet Again
Rendering Fail
Rendering Fail
Almost Working Correct
Almost Working Correct
Occlusion Culling
Occlusion Culling
I start wanting to have the light map independent from the albedo thus the light map baker can now build very noisy light maps directly
Lightmap Light Only
Lightmap Light Only
Lightmaps With Tonemapper
Lightmaps With Tonemapper
Up to this point in the engine all assets have been loaded synchronously which caused larger and larger frame drops when the level is loaded. With my goal to make a game engine which can be used to create VR content and not having the user inconvenienced by stuff normal engines do loading times had to come down.
Async Asset Loading In Tracy
Async Asset Loading In Tracy
Hierarchical LODs failing spectacularly
Hierarchical LODs failing spectacularly
Areas Missing From The Mesh
Areas Missing From The Mesh
Hierarchical LODs for meshlets failing even harder
Hierarchical LODs for meshlets failing even harder
Large Scene Loading Broken
Large Scene Loading Broken
First successful lightbuild of bistro with missing denoising of the lightmaps
First successful lightbuild of bistro with missing denoising of the lightmaps
Masked Alpha Channel implemented
Masked Alpha Channel implemented
I start working on skinned mesh rendering for a character in the game where this avali is the test
I start working on skinned mesh rendering for a character in the game where this avali is the test
Spherical Harmonics start working on skinned meshes causing those nice shadows on the cloth
Spherical Harmonics start working on skinned meshes causing those nice shadows on the cloth
I implement a reinhard tonemapper and discover that I have an issue with bit depth in the blender export for light maps
I implement a reinhard tonemapper and discover that I have an issue with bit depth in the blender export for light maps
Failed to setup BC6H compression correctly
Failed to setup BC6H compression correctly
Spawning game objects during runtime
Spawning game objects during runtime
I was investigating why my light probes were lighting objects which shouldn't have had light on their back had it anyways. Turns out its a quirk with the second level of spherical harmonics where they have a symmetry issue which creates that ghost light on the back of the sphere.
Spherical harmonics lightprobe ringing on back with L2
Spherical harmonics lightprobe ringing on back with L2
Spherical harmonics lightprobe L0 and L1
Spherical harmonics lightprobe L0 and L1
First tests to import spherical harmonics data into the engine
First tests to import spherical harmonics data into the engine
Spherical harmonics data loads "correctly" for the first time. Problem is when an object is outside the bounds. It can't sample sh data
Spherical harmonics data loads "correctly" for the first time. Problem is when an object is outside the bounds. It can't sample sh data
Here I notice the Problem that there is no shadow from the direct light source (sun) which causes the shadow. I dont understand yet how the shadows work
Here I notice the Problem that there is no shadow from the direct light source (sun) which causes the shadow. I dont understand yet how the shadows work
Bounce lighting is successfuly captured in spherical harmonics data but there is an artifact when the object normal is perpendicular to the view axis
Bounce lighting is successfuly captured in spherical harmonics data but there is an artifact when the object normal is perpendicular to the view axis
Lightmaps and spherical harmonics data starting to work together. The spheres in the scene are dynamic objects (no lightbake) and the rest are static objects with baked lighting
Lightmaps and spherical harmonics data starting to work together. The spheres in the scene are dynamic objects (no lightbake) and the rest are static objects with baked lighting
Here I notice that when you move far away from an object black borders appear at the UV edges. This is caused by me not doing color dilatation in the lightmaps
Here I notice that when you move far away from an object black borders appear at the UV edges. This is caused by me not doing color dilatation in the lightmaps
First tries at rendering cascaded shadow maps
First tries at rendering cascaded shadow maps
The shadow maps work better but they still have their issues. The sphere in the shadow still gets bounce lighting from the floor eventhough there is bascially no light in that spot
The shadow maps work better but they still have their issues. The sphere in the shadow still gets bounce lighting from the floor eventhough there is bascially no light in that spot
Bounce lighting intensity is way off but cascaded shadow maps and lightmaps are now playing nice together
Bounce lighting intensity is way off but cascaded shadow maps and lightmaps are now playing nice together
To bake the large amount of lightmaps I have built (vibecoded mostly) a lightbaking farm which runs on AI inference provider hardware which is Vast.ai in this case
To bake the large amount of lightmaps I have built (vibecoded mostly) a lightbaking farm which runs on AI inference provider hardware which is Vast.ai in this case
Here I get ImGui to render to a render target for the first time and successfully display it in the scene
Here I get ImGui to render to a render target for the first time and successfully display it in the scene
More ImGui rendering success
More ImGui rendering success
As the project is nearing its completion I need a visualization of the different rendering features the engine supports
As the project is nearing its completion I need a visualization of the different rendering features the engine supports
Building physically pressable buttons. In this case the math is off and the hitbox (orange) is below the actual mesh
Building physically pressable buttons. In this case the math is off and the hitbox (orange) is below the actual mesh
This is the confusion matrix which shows the physics interactions between two objects having a certain collision profile
This is the confusion matrix which shows the physics interactions between two objects having a certain collision profile
With agentic systems becoming a larger part in development I start to implement a screenshot tool which can readback an eye of the headset so vision models can directly debug visual stuff
With agentic systems becoming a larger part in development I start to implement a screenshot tool which can readback an eye of the headset so vision models can directly debug visual stuff
When breaking down the bistro scene I notice that most geometry isnt shared eventhough large parts of the scene could be isntanced. That is when I build an extension to the blender plugin which lets me link the mesh data so the engine doesnt have the same mesh 100 times in vram
When breaking down the bistro scene I notice that most geometry isnt shared eventhough large parts of the scene could be isntanced. That is when I build an extension to the blender plugin which lets me link the mesh data so the engine doesnt have the same mesh 100 times in vram
Implemented anchors as empties in blender. Allows me to specify points in space which are accssible by name to use in code
Implemented anchors as empties in blender. Allows me to specify points in space which are accssible by name to use in code
WIP of the scene I want to submit for the university project.
WIP of the scene I want to submit for the university project.
miniaudio integration into a node graph in blender. That way audio authoring becomes way easier
miniaudio integration into a node graph in blender. That way audio authoring becomes way easier
I try out more benchmark scenes. In this case a room which has curtains which break the culling because of broken normals.
I try out more benchmark scenes. In this case a room which has curtains which break the culling because of broken normals.
Implemented auto exposure with a propper skybox
Implemented auto exposure with a propper skybox
Same level in sunset
Same level in sunset
same level with worse exposure and broken cascaded shadow maps
same level with worse exposure and broken cascaded shadow maps
The current tree foliage looks bad and I start investigating tress with custom normals in the canope so that they look more coherent
The current tree foliage looks bad and I start investigating tress with custom normals in the canope so that they look more coherent
Problems with the way cascaded shadow maps interact with static light. In this case I use an apporach where I subtract static and dynamic lighting to find out which one should survive but this causes a whole bunch of issues like the gaps here
Problems with the way cascaded shadow maps interact with static light. In this case I use an apporach where I subtract static and dynamic lighting to find out which one should survive but this causes a whole bunch of issues like the gaps here
With the mentioned subtraction the BC6H compression of the lightmap leaks out as aritifacts in the shadow of cascaded shadow maps which is noticable in game but really bad when exagergated like in this picture
With the mentioned subtraction the BC6H compression of the lightmap leaks out as aritifacts in the shadow of cascaded shadow maps which is noticable in game but really bad when exagergated like in this picture
Full lightbake of the bistro scene where light energies are still not right but the sun is falling into the restaurant correctly
Full lightbake of the bistro scene where light energies are still not right but the sun is falling into the restaurant correctly
Second view of the bistro scene with better lightmaps
Second view of the bistro scene with better lightmaps
I start experimenting with a new foliage pipeline because I want to try to do vertex offset based on vertex color so that foliage doesn't float over the floor when being pushed by the wind.
The beginnings of foliage rendering
The beginnings of foliage rendering
Full view of the tree with custom normals with ferns at the bottom of the tree
Full view of the tree with custom normals with ferns at the bottom of the tree
Larger scene with a bunch of geometry which doesn't have lods. This scene is munching all the GPU processing as there is a ton of overdraw in the leaves which all use image based lighting which is killing performance
Larger scene with a bunch of geometry which doesn't have lods. This scene is munching all the GPU processing as there is a ton of overdraw in the leaves which all use image based lighting which is killing performance
The blender exporter now supports linked data geometry node exports allowing for seamless importing of the forst scene
The blender exporter now supports linked data geometry node exports allowing for seamless importing of the forst scene