Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter video background color not working at 100% #979

Open
gokugen opened this issue Jul 29, 2022 · 1 comment
Open

Filter video background color not working at 100% #979

gokugen opened this issue Jul 29, 2022 · 1 comment

Comments

@gokugen
Copy link

gokugen commented Jul 29, 2022

Hello,

I use chromaKeyFilteringColor in order to remove my green background from my video but this creates a green border color around the character.

How can I remove this border?

my code:

ViroMaterials.createMaterials({
	chromaKeyFilteredVideo: {
		chromaKeyFilteringColor: "#00FF00",
	}
})

return (
      <ViroARSceneNavigator
		style={styles.videoItem}
		autofocus={true}
		initialScene={{
			scene: () => (
				<ViroARScene>
					<ViroVideo
						source={require('../assets/example.mp4')}
						materials={['chromaKeyFilteredVideo']}
						position={[0, -0.4, -1]}
						scale={[scale, scale, scale]}
						width={1}
						height={0.5}
					/>
				</ViroARScene>
			),
		}}
	/>
)

On Android:

On IOS:

Thank you very much for your help !

Versions

  • @viro-community/react-viro => ^2.23.0
  • react-native: 0.67.2
@johncantrell97
Copy link

I'm also seeing this, any luck improving it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants