Profile cover photo
Profile photo
Vilya Harvey
84 followers
84 followers
About
Vilya's posts

Post has attachment
LD_DEBUG
Posting this mainly as a reminder to myself... If you ever find yourself needing to figure out a dynamic library loading problem on Linux, LD_DEBUG can be a massive help. This is an environment variable you can set to make the dynamic linker print out a ton...

Post has attachment
Octree node identifiers
Let's say we have an octree and we want to come up with a unique integer that can identify any node in the tree - including interior nodes, not just leaf nodes. Let's also say that the octree has a maximum depth no greater than 9 levels, i.e. the level cont...

Post has attachment
Common bit prefix length for two integers
Here's a neat trick I discovered a couple of months back: given two signed or unsigned integers of the same bit width, you can calculate the length of their common prefix very efficiently: int common_prefix_length(int a, int b)
{
return __builtin_clz(...

Post has attachment
Image based lighting notes
These are some of my notes from implementing image based lighting, a.k.a. IBL. I thought I understood it pretty well until I started implementing it. Now, after a lot of reading, discussing and trying things out, I'm finally getting back to the stage where ...

Post has attachment
Image based lighting notes
These are some of my notes from implementing image based lighting, a.k.a. IBL. Before I started, I thought I understood it pretty well. As soon as I got into the details, I realised that I didn't & that there was a lot more to it than I thought. I'm finally...

Post has attachment
Faster morton codes with compiler intrinsics
Today I learned that newer Intel processors have an instruction which is tailor-made for generating morton codes: the PDEP instruction. There's an instruction for the inverse as well, PEXT . These exist in 32- and 64-bit versions and you can use them direct...

Post has attachment
Awesome tools for Windows users
I moved back to Windows on my home computer a few months back. There are a few amazing free tools I've found since then that have been making my life better and I thought they deserved a shout-out. They are: SumatraPDF A fantastic PDF reader. Does everythin...

Post has attachment
Whole program lexical analysis
I was thinking about parsing and lexical analysis of source code recently (after all who doesn't... right??). Everywhere I've looked - which admittedly isn't in very many places - parsers still seem to treat input as a stream of tokens. The stream abstracti...

Post has attachment
PhotoPhotoPhotoPhotoPhoto
16/11/2014
106 Photos - View album

Post has attachment
Project Tethys Post-mortem
Project Tethys was my entry for Ludum Dare 29 . Here's the elevator pitch: Project Tethys is a fast-paced underwater 2D shoot-em up inspired by the likes of Defender and Resogun . You control an advanced combat submarine tasked with defending an underwater ...
Wait while more posts are being loaded