Hi all,
I'm trying to get rid of the background that's drawn behind a spine animation on Android.
I'm using the spine monogame runtime.
I thought maybe I could just pass a transparent color to GraphicsDevice.Clear(), but this actually results in a black background. Setting anything else like Color.White does actually result in a white background.
protected override void Draw(GameTime gameTime) {
graphics.GraphicsDevice.Clear(Color.Transparent); // results in a black background (?)
graphics.GraphicsDevice.Clear(Color.White); // results in a .... white background (you guessed it)
state.Update(SpeedFactor * gameTime.ElapsedGameTime.Milliseconds / 1000f);
state.Apply(skeleton);
skeleton.UpdateWorldTransform();
skeletonRenderer.Begin();
skeletonRenderer.Draw(skeleton);
skeletonRenderer.End();
bounds.Update(skeleton, true);
base.Draw(gameTime);
}
The android view I draw the animation on (actually a LinearLayout) is transparent, so the problem really is the animation drawing a (black, white,...) background on its view in the draw method. Removing the GraphicsDevice.Clear method shows that the problem really is around that line as I can then see a transparent background but of course without the clearing the animation gets completely messed up and is shown multiple times.
Any ideas on how to get rid of the background?
Thank you,
Christoph