Re: [SailfishDevel] Drawing ShaderEffect to Canvas

2015-10-26 Thread Gunnar Sletta
> On 26 Oct 2015, at 10:52, Kimmo Lindholm wrote: > > I think I found a way to do this. > > I draw the painting tool to a separate preview canvas, and use this as a > alpha-mask input for the shader. Then combine this with processed drawing > canvas contents and view the shader output in rea

Re: [SailfishDevel] OpenGL usage

2015-08-03 Thread Gunnar Sletta
> On 15 Jul 2015, at 09:53, Petr Vytovtov wrote: > > Hello! > > I've tried to make this example: > http://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html. But the > app shows only a label and a rectangle (the screenshot in attachments). Is it > possible to use OpenGL on Sailfis

Re: [SailfishDevel] could we support_hw_overlay_from_gst-droid?

2015-05-25 Thread Gunnar Sletta
that window surface. The client application would still need to render its ui and other stuff through the traditional means, of course. There are a lot of ifs in there though, so it is just thoughts for now :) cheers, Gunnar > > On Fri, May 22, 2015 at 6:21 PM, Gunnar Sletta > wro

Re: [SailfishDevel] 回复:Re: could we support_hw_overlay_from_gst-droid?

2015-05-22 Thread Gunnar Sletta
> On 22 May 2015, at 14:42, Mohammed Hassan wrote: > > On Fri, 22 May 2015 16:31:35 +0800 > Halley wrote: > >> after a thought, I think overlay can be added back in the following >> way:1. wayland-android-client-protocol.h supports passing >> ANativeWindowBuffer from wayland client to server.

Re: [SailfishDevel] Different behaviour of ShaderEffectSource in emulator vs. device

2015-02-11 Thread Gunnar Sletta
graphics cards. On Tue, Feb 10, 2015 at 9:04 PM, Gunnar Sletta mailto:gunnar.sle...@jolla.com>> wrote: Hi Luca, The application code is not doing the right thing :) If the ShaderEffectSource depends on itself, it needs to have the “recursive” property set to true, and that is still proba

Re: [SailfishDevel] Different behaviour of ShaderEffectSource in emulator vs. device

2015-02-10 Thread Gunnar Sletta
Hi Luca, The application code is not doing the right thing :) If the ShaderEffectSource depends on itself, it needs to have the “recursive” property set to true, and that is still probably not what you want. What you probably want is to set “layer.enabled: true; layer.smooth: true” on the grad

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-10-02 Thread Gunnar Sletta
On 02 Oct 2014, at 09:29, wrote: > Hello, > > Selon Iosif Hamlatzis : >> Reading all these and previous similar changes I was wondering why other >> mobile platforms don't have this issue? > IMHO, there is a misunderstanding here, as far as I've understood, most of > applications don't have to

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-10-02 Thread Gunnar Sletta
On 02 Oct 2014, at 08:56, Iosif Hamlatzis wrote: > Reading all these and previous similar changes I was wondering why other > mobile platforms don't have this issue? If I'm not mistaken in no other > mobile platform the developer has to take into account if his/her application > goes into the

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-10-01 Thread Gunnar Sletta
I see.. So if this pattern is more common then perhaps a different strategy is in order. Thinking out loud: One option we could implement is to have a hint on the canvas that it should be retained. Meaning, when the application is hidden and the scene graph and the GL context is invalidated, we

Re: [SailfishDevel] Landscape Orientation without Silica

2014-10-01 Thread Gunnar Sletta
On 01 Oct 2014, at 22:22, Adam Pigg wrote: > Hi > > Is is possible to force an application into landscape orientation, when only > using a plain QQuickWindow and QML/QtQuick2 without using silica > components/applications/pages? > > Ive tried creating a sub item of my root item that is rotat

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-09-29 Thread Gunnar Sletta
On 29 Sep 2014, at 16:43, Mohammed Hassan wrote: > On Sat, 27 Sep 2014 16:28:42 + > Kimmo Lindholm wrote: > >> Hi, >> >> Just wanted to give a follow-up on this topic; >> >> You are affected if you are drawing on Canvas (and don't want to >> repaint it completely when returning to applic

Re: [SailfishDevel] app crashed when using Canvas in Dialog page

2014-08-14 Thread Gunnar Sletta
On 14 Aug 2014, at 10:39, Samuli Silvius wrote: > Thanks, great to hear! Update coming this month? You'll hear from the right parties when the dates have been set :) > > -Samuli > > > 2014-08-14 11:34 GMT+03:00 Gunnar Sletta : > > On 14 Aug 2014, at 09:21, Sam

Re: [SailfishDevel] app crashed when using Canvas in Dialog page

2014-08-14 Thread Gunnar Sletta
crashes. I couldn't reproduce a crash with 50 consecutive open/cancel, so I'm thinking this will be fixed in the next update then. cheers, Gunnar > > Br > -Samuli > > > 2014-08-14 9:53 GMT+03:00 Gunnar Sletta : > Hi, > > I'm hoping this will already be fi

Re: [SailfishDevel] app crashed when using Canvas in Dialog page

2014-08-13 Thread Gunnar Sletta
Hi, I'm hoping this will already be fixed in update 9 by the cleanup improvements I did to the canvas implementation a few weeks ago, but just to be on the safe side, I'd like to test it. Is there an example or app I could try to verify that? (I'd prefer to get a complete example rather than re

Re: [SailfishDevel] Qt 5.2 in devel

2014-06-22 Thread Gunnar Sletta
gt; > On Sat, Jun 21, 2014 at 7:48 PM, Gunnar Sletta > wrote: > > On 21 Jun 2014, at 16:21, Alejandro Exojo wrote: > > > El Wednesday 18 June 2014, Robin Burchell escribió: > >> Sorry folks. This wasn’t intended to be posted here, but, have a slight > >>

Re: [SailfishDevel] Qt 5.2 in devel

2014-06-21 Thread Gunnar Sletta
On 21 Jun 2014, at 16:21, Alejandro Exojo wrote: > El Wednesday 18 June 2014, Robin Burchell escribió: >> Sorry folks. This wasn’t intended to be posted here, but, have a slight >> visual on what’s going on behind the curtain anyway. :) > > I hope everything went well and nobody phoned you in t

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-05-06 Thread Gunnar Sletta
You are only affected if you use QtQuick in combination with OpenGL and the QSG classes. Raw OpenGL, SDL, etc is not affected. cheers, Gunnar On 06 May 2014, at 15:32, Iosif Hamlatzis wrote: > What about developers such as myself who doesn't use Qt at all but c/c++ with > OpenGL directly. >

Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-05-06 Thread Gunnar Sletta
On 06 May 2014, at 12:19, David Greaves wrote: > On 06/05/14 10:55, Gunnar Sletta wrote: > >> to be "false" meaning that when an application is not on screen, its graphics >> memory and OpenGL context will be deleted. > > What does on screen mean? Sinc

[SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-05-06 Thread Gunnar Sletta
lcontext.html#aboutToBeDestroyed is something something you can already do. Same if you want to avoid the issue all together and setPersistent(SceneGraph|OpenGL)(true) right away. These APIs have been there since Qt 5.0. --- If you have further questions, please feel free to