How to improve graphics quality

心不动则不痛 提交于 2020-07-23 06:48:13

问题


First look at the difference:

The top's been created in WPF and the bottom with Qt. All Path Data has been taken from materialdesignicons. For WPF I've taken XAML and for QtQuick SVG. For DropShadow I've specified a value for samples property BUT for svg and rotated Text there's no such property.

Is this the difference between OpenGL/CL/etc. and DirectX or something else? The machine I'm working on has both Intel and NVIDIA! I want my QtQuick app to use NVIDIA to compute efficiently and render properly BUT don't know yet how to set that as well as other necessary options application wide to improve quality.

Here is my QtQuick project. Here I'd added a sample qmlfile earlier, that shows the way I integrated SVGs in my app.

EDIT

This actually improves the quality BUT it still is blurry and not as good as it is in WPF. The rotated text has some pointy edges as well.

With that QSurfaceFormat in main.cpp

int main(int argc, char *argv[])
{
    ...
    QSurfaceFormat format;
    format.setSamples(15);
    QSurfaceFormat::setDefaultFormat(format);

    QQmlApplicationEngine engine;
    ...
}

I don't have to set samples for DropShadow. How to enable NVIDIA globally?

EDIT

In addition to that I've tried with QSurfaceFormat::OpenVG BUT it complains about the driver and wants 3 DLLs in executable folder as an alternative so I've downloaded those 3 DLL and put those in the output directory BUT it still doesn't work! Here's the error I get:

来源:https://stackoverflow.com/questions/62709212/how-to-improve-graphics-quality

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!