Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Picture Rendering Problem
Started by chris.matchlock Jan 08 2016 05:39 AM

- - - - -
9 replies to this topic
iphone6splus transparent black newimagerect newimage
[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

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

I have faced a very strange problem.

I have some graphs with some transparent on its edge in my game.

The graph is rendered by API display.newImageRect() or display.newImage()

We tested many device that the rendering have no problem.

However we recently tested with iphone6s plus.

The same code and same graph resulted all TRANSPARENT region becoming BLACK in color. (Just transparent getting problem, RGB is fine.)

This is so strange to us.

Anyone could solve this? We are about to release the app. We blocked by this problem.



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,622 posts
  • Corona SDK

Are you doing any manual scaling, clipping with a container, or clipping with a mask?

 

Can you share the problem image source file for us to examine?



[TOPIC: post.html]
#3

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

Thank you for noticing this message.

 

We think we can identifier the problem clearly now.

It is the problem about

fill.effect = "filter.brightness"

 

Please find attached two photo.

One called FillEffect.png another called noFillEffect.png.

 

We discovered that when a photo with transparent and using

fill.effect = "filter.brightness"

fill.effect.intensity = 0

iPhone 6s Plus would make all the transparent to black in color.

(This problem can be repeated by any png photo.)

 

I think this corona SDK fill effect engine problem. Please help us to follow. Thanks so much!

Attached Thumbnails

  • FillEffect.png
  • noFillEffect.png


[TOPIC: post.html]
#4

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

Forgot to mention we used

Corona Simulator: Version 2015.2802

Xcode: Version 7.2 (7C68)



[TOPIC: post.html]
#5

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,622 posts
  • Corona SDK

If you've got a consistent test case and are sure it is broken on iPhone 6s, please file a bug.  I think there may be a few issues right now with iPad Pro and iPhone 6s, specifically with masking and transparency in some cases.  My own clients have mentioned this, but not having this hardware I've been unable to do much to verify this.

 

So, if you can again post a bug with a small test case, that would be the best way to get this resolved.

 

https://developer.coronalabs.com/content/bug-submission



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,547 posts
  • Enterprise

Your test case needs to include a config.lua, build.settings and main.lua and any assets like the images that shows the problem. Please put it in a .zip file (not a .bz2 or other format) and use the Report a Bug link at the top of the page.

 

In your bug report, please put the language "It appears that the brightness filter isn't handling alpha transparency correctly". This will help narrow the problem. Also link to this forum thread in the text of the bug report.

 

You will get an email back confirming the bug report submission. The email will contain a CaseID in the subject. Please post that number back to this thread as a reference.

 

Thanks

Rob



[TOPIC: post.html]
#7

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

Dear Rob,

 

  I don't find "iPhone 6s and iPhone 6s Plus" Platform option. It is fine to just click iPhone 6 and iPhone 6 Plus?

  But I don't find the iPhone 6 and iPhone 6 Plus have the same problem...



[TOPIC: post.html]
#8

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

Dear Rob and roaminggamer,

 

  The reported case is Case 44615.

 

  Thanks a lot for the assistant!



[TOPIC: post.html]
#9

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @chris.matchlock,

Thank you for filing the bug report, but this is not a bug and thus I have closed the case you filed. The documentation for "filter.brightness" clearly states that "This filter does not consistently support transparent regions.". 

 

https://docs.coronalabs.com/guide/graphics/effects.html#filter.brightness

 

You may be able to achieve a similar brightening effect with the "filter.levels" effect which does not have the same inconsistency on various devices.

 

Take care,

Brent



[TOPIC: post.html]
#10

chris.matchlock

[GLOBAL: userInfoPane.html]
chris.matchlock
  • Observer

  • 17 posts
  • Corona SDK

Hi Brent,

 

Thank you for reviewing our case. I have tried your suggested similar filter.levels. However, I don't think it get any closer to the effect of intensity. And I don't find any equivalent filter corona supported could replace filter.brightness. Because brightness could make a effect "spread the color to alpha=0 area".

 

For example I can use brightness to generate electric arc easily. But filter.levels cannot do the same. Please find attached photo to compare the different.

 

I would like to know if this problem could be made more device available in the future? Or anything drive corona cannot guarantee the behaviour?

 

I have tested this effect with many android and iOS products. I only discover this is happened to iPhone 6s. Could this be solved? I think the iPhone 6s definitely a popular current version. Why this effect cannot be used in iPhone 6s?

Attached Thumbnails

  • Brightness.png
  • NonBrightness.png



[topic_controls]
[/topic_controls]