Memory leaks detection

Suddenly noticed that while running, memory consumption is slowly but steadily creeping up: which can only mean one thing: Well, then we need to find (detect) and fix it (or them). Some sort of memory leak detection tool would help. Visual Studio offers it's own set of "CRT debug heap functions". However, I was unable […]

Chapter 38. Hierarchical models

Now we are ready for more complex models, consisting of several elements with individual behavior. For example - car, where body will be a parent (root) element, and wheels - child elements. For both, body and wheel, we'll need separate model descriptors and separate classes, which will handle their behaviors. 1. In Windows File Explorer […]

Chapter 37.2. GitHub

Just to make sure that we are on the same page, let's synchronize our environments. You can download full current Project repository from https://github.com/bkantemir/_wg37 Windows solution, x86: _wg37-main\a997modeler\p_windows\p_windows.sln Android solution, ARM64: _wg37-main\a997modeler\p_android\p_android.sln Important changes here: In order to untie the project from C:\CPP, all paths in projects properties were converted to relative form. Like ..\..\engine […]

Chapter 36. "Glass" effect

The model is almost ready. Two remaining missing pieces are: For clear-film we don't even need to write a new shader. We will use our "mirror" shader (as for gilded prints) with white noise as a main texture (uTex0) and will "translate" it to semi-transparent 8x1 texture glass01.bmp (uTex3), imitating glass reflection. It's a plain […]

Chapter 35. "Wire" shader

Here I want to add a golden sealing ribbon on the pack. It will be a line, a sequence of points instead of regular triangulars mesh. It will require: A set of new tags in ModelLoader New lineWidth property in Material class In DrawJob we'll need to adjust lineWidth depending on distance Additional shader's functionality […]

OpenGL ES vs Vulkan vs Angle

Sure, I had doubts regarding my initial OpenGL ES choice. Now I have some answers: Vulkan Is it good? Well... Yes: However, I'm mainly interested in how cross-platform it is. Unfortunately, not exactly. Besides: Actually, quite enough to exclude it from my consideration… OpenGL ES The situation around OpenGL ES seems to me much more […]

Visual Studio: the file contains a virus?!

A few days ago I started receiving the following messages from Windows Defender: Microsoft Visual Studio: Unable to start program 'C:\CPP\...\w.exe'. Operation did not complete successfully because the file contains a virus or potentially unwanted software. At the beginning it didn't bother me much, since project rebuild usually helped. But finally Defender "promoted" me (along […]