The Following 4 Users Say Thank You to justmemory For This Useful Post: | ||
|
2018-05-26
, 12:44
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#2002
|
It doesn't work...
What I did was:
Code:git clone https://github.com/M4rtinK/modrana.git cd modrana/ python modrana.py
The Following 6 Users Say Thank You to MartinK For This Useful Post: | ||
|
2018-05-26
, 20:29
|
Posts: 391 |
Thanked: 908 times |
Joined on Aug 2011
@ suncity
|
#2003
|
The Following 7 Users Say Thank You to justmemory For This Useful Post: | ||
|
2018-06-01
, 23:37
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#2004
|
The Following 14 Users Say Thank You to MartinK For This Useful Post: | ||
|
2018-06-02
, 12:42
|
Posts: 1,414 |
Thanked: 7,547 times |
Joined on Aug 2016
@ Estonia
|
#2005
|
|
2018-06-11
, 00:50
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#2006
|
Just let me know if you run into any stumbling block. And, with MapboxGL, get ready to offload all tile caching/downloading to it.
|
2018-06-11
, 00:58
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#2007
|
ERROR: 0:11: 'atan2' : no matching overloaded function found ERROR: 1 compilation errors. No code generated. [W] unknown:0 - QOpenGLShader::compile(Fragment): ERROR: 0:11: 'atan2' : no matching overloaded function found ERROR: 1 compilation errors. No code generated. [W] unknown:0 - *** Problematic Fragment shader source code *** [W] unknown:0 - #ifndef GL_FRAGMENT_PRECISION_HIGH #define highp mediump #endif #line 1 uniform lowp float qt_Opacity; uniform highp float angleBase; uniform highp float angle; varying highp vec2 coord; void main() { gl_FragColor = vec4(0.0,0.0,0.0,0.0); highp vec2 d=2.0*coord-vec2(1.0,1.0); highp float r=length(d); if (0.66<=r && r<=0.92) { highp float a=atan2(d.x,-d.y); if (angleBase<=a && a<=angle) { highp float p=(a-angleBase)/(angle-angleBase); gl_FragColor = vec4(0.9,0.2,0.1,p) * qt_Opacity; } } } [W] unknown:0 - *** [W] unknown:0 - QQuickCustomMaterialShader: Shader compilation failed: [W] unknown:0 - "ERROR: 0:11: 'atan2' : no matching overloaded function found \nERROR: 1 compilation errors. No code generated.\n\n"
The Following 5 Users Say Thank You to MartinK For This Useful Post: | ||
|
2018-06-11
, 08:32
|
|
Community Council |
Posts: 1,669 |
Thanked: 10,225 times |
Joined on Nov 2014
@ Lower Rhine
|
#2008
|
Unfortunately something is apparently wrong with the shaders used for it, as I just get a violet rectangle and a bunch of errors in the log:
[CODE]ERROR: 0:11: 'atan2' : no matching overloaded function found
The Following 7 Users Say Thank You to mosen For This Useful Post: | ||
|
2018-06-11
, 08:53
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#2009
|
Yay MartinK!
Sorry for not responding earlier, thanks for concidering the gauge
Please stop wasting time on debugging silly opengl. I will rewrite the gauge using pure qml. The code will be much longer but i can generate nearly the same design using RadialGradiant applied to a thick line.
Its just that i found the Shader thingy to be quite elegent but if it crashes, it crashes.
I don't have the SFOS Sdk installed so all i do is prototype in qmlscene. Sorry for letting you run into such an alpha stage problem.
Also on AsteroidOS we had problems with a watchface employing shaders that would not display on a single watch only, the sony tetra. After quite some debug kido decided to simply hide the watchface for tetra :/
The Following 6 Users Say Thank You to MartinK For This Useful Post: | ||
|
2018-06-11
, 13:20
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#2010
|
The Following 6 Users Say Thank You to Android_808 For This Useful Post: | ||
Tags |
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps |
|
What I did was: