Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

radialWipe randomly inverts itself on iPad?
Started by Alan PlantPot Mar 09 2016 06:08 AM

3 replies to this topic
radialwipe filter ipad invert negative
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 936 posts
  • Corona SDK

We have tried using a radialWipe filter to create a kind of "pie chart" that fills up over time. On the simulator and Android this seems to work fine. On an iPad 3 it works ok, but on an iPad Air we see a weird effect where the radialWipe decides to invert the opaque/transparent sections.

 

You can see the effect here: 

 

The piechart can be seen filling behind the number 1, and occasionally jumps to an inverted state. I have printed out the progress values being used, and they go from 1 to 0 as expected. 

 

The progress is being updated in an enterframe loop, nothing strange happening there.  

 

The only thing that could be considered non-standard is that I had to flip the xScale of the object to -1 and make the progress go from 1 to 0 instead of 1 to 0, because we wanted the opaque section to fill clockwise, not the transparent section.  

I don't see any reason why that would cause this weird inversion to happen though, as we do not change the xScale value at all after the object is initially created.

 

Does anyone have any ideas?



[TOPIC: post.html]
#2

redninjacat

[GLOBAL: userInfoPane.html]
redninjacat
  • Contributor

  • 196 posts
  • Corona SDK

This sounds like a bug. But I might be able to suggest a work around. Instead of using an xScale of -1, how about you try reversing the colors to appear the as you would like. i.e. If you have pink over yellow, instead use yellow over pink and change the way you adjust the wipe. Instead of 1 to 0, use 0 to 1, or vice versa. Or whatever. Just ideas.



[TOPIC: post.html]
#3

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 936 posts
  • Corona SDK

Pretty sure it is a bug, as it only happens on certain devices I'm guessing it's a GPU issue or something like that.  

 

You're idea could work, our shape is actually just one colour with transparency, but I suppose we could make it a solid circle and then do a radial wipe on another object over the top, which is the same colour as the background. 

 

Would rather know if the filter has a fixable bug though of course.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,683 posts
  • Enterprise

Can you file a bug report please? Create a simple example that demonstrates the problem. The project must have a main.lua, config.lua and build.settings and any assets needed for it to run. Put all of that in a .zip file and use the Report a bug feature at the top of this page. Once you've successfully filed it, you will get a confirmation mail.  Please post the CaseID # back here.

 

You can also attach the video which will help too.

 

Rob




[topic_controls]
[/topic_controls]