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

2015-02-12 Thread Luca Donaggio
Wow! Documentation for Qt 5.4 has massively improved! Never thought about looking at the 5.4 branch for docs though, as I'm developing for SailfishOS exclusively and it's still 5.2 based; but from now on I will for sure, it's sooo much better, thank you for pointing this out! On Wed, Feb 11, 2015

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

2015-02-11 Thread Gunnar Sletta
On 11 Feb 2015, at 10:46, Luca Donaggio mailto:donag...@gmail.com>> wrote: Thank you Gunnar! I completely misunderstood the "layer" property of the Item element! I thought its purpouse was to apply an effect (or a texture) to an Item before rendering it on the scene, not to render any Item as

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

2015-02-11 Thread Luca Donaggio
Thank you Gunnar! I completely misunderstood the "layer" property of the Item element! I thought its purpouse was to apply an effect (or a texture) to an Item before rendering it on the scene, not to render any Item as an out-of-scene texture which could then be used as the source for a ShaderEffe

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] Different behaviour of ShaderEffectSource in emulator vs. device

2015-02-10 Thread Luca Donaggio
Thanks Andrey. I'll report this on TJC as well, trying to get more visibility. I hope that some Sailor will notice it: it's not that important, but it's disturbing nonetheless. On Tue, Feb 10, 2015 at 11:39 AM, Andrey Kozhevnikov wrote: > yes i can confirm this behaviour. > > 10.02.2015 15:24

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

2015-02-10 Thread Andrey Kozhevnikov
yes i can confirm this behaviour. 10.02.2015 15:24, Luca Donaggio пишет: Hi Andrey, thanks for your reply. Still, can you try both tests on your Jolla? The first shouldn't work, while the second does. On Tue, Feb 10, 2015 at 10:32 AM, Andrey Kozhevnikov mailto:coderusin...@gmail.com>> wrote:

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

2015-02-10 Thread Luca Donaggio
Hi Andrey, thanks for your reply. Still, can you try both tests on your Jolla? The first shouldn't work, while the second does. On Tue, Feb 10, 2015 at 10:32 AM, Andrey Kozhevnikov wrote: > sorry, not using emulator at all. > > 10.02.2015 14:28, Luca Donaggio пишет: > > Anybody is willing to t

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

2015-02-10 Thread Andrey Kozhevnikov
sorry, not using emulator at all. 10.02.2015 14:28, Luca Donaggio пишет: Anybody is willing to try my test code and confirm or deny my finding? On Fri, Feb 6, 2015 at 2:12 PM, Luca Donaggio > wrote: The following code works fine in Emulator, changing the gradien

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

2015-02-10 Thread Luca Donaggio
Anybody is willing to try my test code and confirm or deny my finding? On Fri, Feb 6, 2015 at 2:12 PM, Luca Donaggio wrote: > The following code works fine in Emulator, changing the gradient of the > Rectangle correctly updates the nested ShaderEffectSource and it is > reflected on the ShaderEff

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

2015-02-06 Thread Luca Donaggio
The following code works fine in Emulator, changing the gradient of the Rectangle correctly updates the nested ShaderEffectSource and it is reflected on the ShaderEffect which uses it as its texture: Page { id: page SilicaFlickable { anchors.fill: parent contentHeight: co