31. October 2022

openSUSE Rust Bevy application failed with “Unable to find a GPU”

Bevy is data-driven engine written in Rust. The repository of Bevy contains several examples which can be started by a command like:

git clone --depth 1 https://github.com/bevyengine/bevy.git
cd bevy
cargo run --example alien_cake_addict

Users of openSUSe might experience following error:

hread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers! For extra information, see: https://github.com/bevyengine/bevy/blob/latest/docs/linux_dependencies.md', crates/bevy_render/src/renderer/mod.rs:121:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The problem is caused by missing Vulkan libraries in the system. This can be confirmed by running vkcube which may result in the following error:

vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.

Check which graphic card is installed in the system:

sudo lspci -nnk | grep -A3 VGA

Which might result in a message like this:

00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-U GT2

With this knowledge, it’s clear that library Vulkan Intel is missing and can be installed simply by:

sudo zupper install libvulkan_intel

Application vkcube should work after this change.

7. September 2021

How to increase font size of Krita UI on Windows?

Krita on Windows might display UI with a very small font:

You can increase the UI font in Krita by the following configuration. Select from the top menu: SettingsConfigure Krita…

Select General from the left pane, select Window tab, check Use Custom Interface Font, and increase the number to a value like 14. Click Ok to apply changes.

21. June 2020

Learn to draw with tablet online app

Learning to draw takes time. Here you can find simple online app which can help you with the task.

The current version contains line drawing exercises: vertical line, horizontal line, diagonal line /, diagonal line \, X, Y, circle, half of circle.

It’s possible to draw by mouse, tablet or by touch (e.g. mobile device screen).

Suggestions for improvement are welcome. Feel free to post them to comment section.

13. January 2018

How to change Windows 10 to grayscale mode and back to color mode

Windows 10 (Fall Creators Update 2017 – winver: 1709) has one neat feature which might be handy for graphic designers and photographers. You can quickly can turn your display quickly to grayscale (black and white).

Some people activates this feature just by accident and they do not know how to turn Windows 10 back to color mode.

The keyboard shortcut is pretty simple:

Windows + CTRL + C

Color mode of Windows 10:

Grayscale (black and white) mode of Windows 10:

You can read more at Microsoft web site.

9. May 2015

How to decode stereogram by GIMP

Some time ago I wrote article How to decode stereogram by Photoshop.

I made a small experiment and it’s possible to achieve similar results by GIMP.

Here is stereogram (Magic Eye Picture) created by Easy stereogram builder.

stereogram-sample

Open file in GIMP. Duplicate the layer.

gimp-duplicate-layers

Change layer mode to Difference.

gimp-difference

Select Move tool from GIMP toolbox (M).

gimp-move-tool

Start moving the layer to the right. You can use arrows to move the layer. If you prefer mouse then click, press and hold CTRL key to avoid shifting in both X and Y axes.

Here is the result:

gimp-stereogram-solution