Why do my sprites turn into black squares after I show an AdMob video?

  • Thread starter Thread starter Darkmisc
  • Start date Start date
  • Tags Tags
    Video
Click For Summary
SUMMARY

The issue of sprites turning into black squares after displaying an AdMob video in a Godot game using Shin-Nil plugins is primarily linked to rendering settings. Users have successfully resolved similar issues by adjusting the graphics backend to GLES3 or Vulkan, changing the rendering mode to Spatial or 2D, disabling VSync, and ensuring that texture flags for Filter and Mipmaps are enabled. These adjustments are critical for maintaining sprite visibility post-ad playback.

PREREQUISITES
  • Familiarity with Godot Engine (version unspecified)
  • Understanding of AdMob integration in game development
  • Knowledge of graphics backends (GLES3, Vulkan)
  • Basic understanding of rendering settings in game engines
NEXT STEPS
  • Research how to change graphics backends in Godot Engine
  • Explore the effects of rendering modes in Godot (Spatial vs. 2D)
  • Learn about VSync and its impact on game performance
  • Investigate common issues and solutions related to Shin-Nil plugins in Godot
USEFUL FOR

Game developers using Godot Engine, particularly those integrating AdMob ads and troubleshooting rendering issues.

Darkmisc
Messages
222
Reaction score
31
TL;DR
I've made a game in Godot that works fine. However, after I play an AdMob video, all the sprites become black squares.
Hi everyone

I've made a game in Godot and added AdMob ads to it using the Shin-Nil plugins.

The game works fine when I run banner ads. However, after I play a rewarded video, all my sprites turn into black squares.

I've tried the following suggestions from ChatGPT and none of them work.

  1. Change the graphics backend. Go to Project > Project Settings > Rendering > Quality > Driver and try changing the graphics backend to a different one, such as GLES3 or Vulkan.
  2. Change the rendering mode. Go to Project > Project Settings > Rendering > Quality > Rendering > Mode and try changing the rendering mode to a different one, such as Spatial or 2D.
  3. Disable VSync. Go to Project > Project Settings > Rendering > Quality > VSync and disable VSync.
  4. Check your project settings. Go to Project > Project Settings > Rendering > Quality > Texture > Flags and make sure that the Filter and Mipmaps options are enabled.

Does anyone know why the videos are causing my sprites to turn into black squares?Thanks
 
Technology news on Phys.org
I would search with google. It’s well known that ChatGPT solutions are totally believable but highly unreliable. When they fail then you must search to find your answer.

the only thing I can think of is something reinitialized your sprite data to be all zeros or something changed the sprite pointer to another area of memory. Since you mentioned using a plug-in you should look for what side effects others have experienced with it in the past.
 
  • Like
Likes   Reactions: phinds and Darkmisc

Similar threads

Replies
3
Views
5K