To debug CMake based project I’ve chosen Visual Studio Code (VS Code) - crossplatform IDE with many useful plugins. Each platform has its specifics. Platforms Mac OS X Install Command line tools (part of Xcode). Install VSCode from its site. Install following plugins: C/C++ CMake Tools Open project. Create la... Read more 09 Jul 2022 - 1 minute read
I’ve written a simple class based on the existing encode/decode functions in the internet for base64 encoding/decoding. /** * Copyright (c) 2022 Vladimir Sviridov. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). * * Base64 encrypting module. */ define([], function () { // Base 64 table ... Read more 26 Jun 2022 - 4 minute read
Quick overview CMake commands are not case sensitive, so you may use any version you like the most. Translating commands to another line doesn’t require additional characters like ‘' in Makefile. Commentaries are made with ‘#’ starting symbol (like in Makefile). Variables Variables are being set with following command: set(value 10) To clear t... Read more 18 Apr 2022 - 3 minute read
Quick overview CMake is now a standard layer for C/C++ development since people have become too lazy to write proper makefiles. CMake generates makefiles based on its own CMakeLists.txt files. Then you have to call make on your own to build your project. Pros and cons Pros: Easy to learn. Easy to write CMakeLists. Tunable. Cons: Mak... Read more 17 Apr 2022 - less than 1 minute read
Variance Shadow Maps (VSM) is a pretty known technique. But I was unable to make it work properly with Cascaded Shadow Maps (CSM). I can’t get homogenous shadows in some places with CSM, and when cascade index changes shadow difference is visually noticable. You can see artifacts in the middle of the image (shadow on the next cascade is lighter... Read more 10 Mar 2022 - 2 minute read