"filter.hue" works on corona simulator but not on devices (iPhone4 iOS7)

I created 8 images,  and applied ‘filter.hue’ to fill.effect, then each image have a different hue angle.

All the 8 images looks good in corona simulator,each one have a difference color. However after i build to device(iPhone4, iOS7), all images seems displayed in a same color, is this a bug?

Thanks

Seems the color range for filter.hue.angle is 0-360 on Corona simulator, but it’s not when running on real devices.

Hi @Jadynut,

It’s working perfectly for me in iOS7 on an iPhone5.

[lua]

object.fill.effect = “filter.hue”

object.fill.effect.angle = 180

[/lua]

Brent

The same code works on iPad2 as well. but it’s not work on iPhone4, colors displayed incorrectly, any idea to fix it?

I attached a screenshot to explain the issue, hope corona could fix this asap. Thanks

Hi @Jadynut,

Sorry for the delayed response. This may be an issue with the GPUs between the two devices. Do you see this kind of extremes when using other images? For example, what happens if you build and install the FilterViewer demo app and check the “hue” option? That project is located in your local application directory:

CoronaSDK > SampleCode > Graphics-Premium > FilterViewer

Brent

Here are some screenshots of the FilterViewer sample code

Hi @Jadynut,

Unfortunately, this seems to be related to how the GPU on each device is interpreting the hue filter. We’ve seen some variances on some Android devices too. I can ask the engineers if there’s any internal solution, but in the meantime, how about detecting the device and adjusting the hue filter slightly more (or less) depending on the device, for closer consistency? I know that’s not an ideal solution, but it may be a workaround to consider.

Thanks,

Brent

Brent,

Ok seems that’s the only solution for now. Thanks.

Seems the color range for filter.hue.angle is 0-360 on Corona simulator, but it’s not when running on real devices.

Hi @Jadynut,

It’s working perfectly for me in iOS7 on an iPhone5.

[lua]

object.fill.effect = “filter.hue”

object.fill.effect.angle = 180

[/lua]

Brent

The same code works on iPad2 as well. but it’s not work on iPhone4, colors displayed incorrectly, any idea to fix it?

I attached a screenshot to explain the issue, hope corona could fix this asap. Thanks

Hi @Jadynut,

Sorry for the delayed response. This may be an issue with the GPUs between the two devices. Do you see this kind of extremes when using other images? For example, what happens if you build and install the FilterViewer demo app and check the “hue” option? That project is located in your local application directory:

CoronaSDK > SampleCode > Graphics-Premium > FilterViewer

Brent

Here are some screenshots of the FilterViewer sample code

Hi @Jadynut,

Unfortunately, this seems to be related to how the GPU on each device is interpreting the hue filter. We’ve seen some variances on some Android devices too. I can ask the engineers if there’s any internal solution, but in the meantime, how about detecting the device and adjusting the hue filter slightly more (or less) depending on the device, for closer consistency? I know that’s not an ideal solution, but it may be a workaround to consider.

Thanks,

Brent

Brent,

Ok seems that’s the only solution for now. Thanks.

I’m having a similar problem with filter.blurGaussian, it’s working and looking nice on the simulator but it crashes ( or grinds down to a halt ) on iPhone4. I suspect the graphics capabilities of older devices isn’t sufficient for some of the graphics 2.0 filters and I’m happy to program a fall back into my app…
But how can I know which devices or platformVersion to filter out, especially for android?

I’m having a similar problem with filter.blurGaussian, it’s working and looking nice on the simulator but it crashes ( or grinds down to a halt ) on iPhone4. I suspect the graphics capabilities of older devices isn’t sufficient for some of the graphics 2.0 filters and I’m happy to program a fall back into my app…
But how can I know which devices or platformVersion to filter out, especially for android?