Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

chromaKey issue?
Started by hgbrian Apr 20 2014 04:39 PM

No replies to this topic
[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

hgbrian

[GLOBAL: userInfoPane.html]
hgbrian
  • Contributor

  • 103 posts
  • Corona SDK

The two images attached show a grey background with a cyan circle and a black circle. There is a green rectangle behind, so green means transparent.
I want to make the black part transparent with the following filter:
object.fill.effect = "filter.chromaKey"
object.fill.effect.color={0.0,0,0,1}
object.fill.effect.smoothing=0.001
object.fill.effect.sensitivity=0.001
 
I test with two grey backgrounds: one has rgb(100,100,100) and the other had rgb(100,101,100). The rgb(100,100,100) grey turns green -- it gets chromakeyed along with black, which is unexpected. When I tweak the color a tiny bit (rgb(100,101,100) then it works!
 



[topic_controls]
[/topic_controls]