A sphere of particles in the fragment shader using raymarching.
Warning
The sphere is not rendered correctly, and there are glitches in the rendred result. Any suggestions to get rid of those glitches are welcome.
A C++/Qt implementation of the SVG arc to cubic curve converter, based on the svgpath repository.
// A 10 10 0 0 0 14 0
auto curves = arcToCubic({0,0}, {10, 0}, {10, 10}, 0, 0, 0);
for(auto curve: curves) {
qDebug() << curve.c1 << ' '
<< curve.c2 << ' '
<< curve.to;
import QtQuick 2.15 | |
import QtQuick.Templates 2.15 as T | |
import QtQuick.Shapes 1.15 | |
import QtGraphicalEffects 1.15 | |
T.Dial { | |
id: control | |
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, | |
implicitContentWidth + leftPadding + rightPadding) | |
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, |
import QtQuick 2.15 | |
import QtGraphicalEffects 1.0 as QGE | |
import QtQuick.Shapes 1.15 as QQS | |
Item { | |
id: control | |
implicitHeight: 150 | |
implicitWidth: 150 |
import QtQuick 2.15 | |
import QtQuick.Controls 2.15 | |
Slider { | |
id: control | |
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, | |
implicitHandleWidth + leftPadding + rightPadding) | |
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, | |
implicitHandleHeight + topPadding + bottomPadding) |
#include <algorithm> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <codecvt> | |
#include <string> | |
#include <locale> | |
int main() | |
{ |