Transparency Bug/Artifact Using PNG Sequence
Using a PNG sequence to make a gif, but I keep getting black artifacts when using a sprite. Images attached. Tried cropping top and bottom, but the small bars seem to always be on the edge of the sequence. In photoshop it is clear no such atrifacts exist, so I am thinking it must be an issue within Studio. Any suggestions?
Hi see_sean, thanks for the question. This is actually a bug we are actively investigating in the 2D animation system. Unfortunately, at this time, there is nothing you can do in Lens Studio to remove the glitch. You're going to have to make a fix in the asset itself. The fix is to add a small 2 pixel padding to the animation frames. You can do this in Photoshop by selecting "Image -> Canvas Size" and adding two pixels to both the "Width" and "Height" fields. Then, export your image sequence and import it as a 2D animation. In the 2D Animation editor, disable Autodetect under the crop settings so that your new transparent padding doesn't get removed (Autodetect removes transparent pixels). Hope this helps!
Hey Travis, not to say you are incorrect, but that doesn't fix the issue. The fix I found is with the "autocropping", when importing an animation as an image sequence. By disabling this feature, there is no problem with the image sequence anymore. So honestly, I am not sure why it is a feature in the first place. I would push out an update or something because it can potentially ruin a great lens. Thanks though! Also, did I reply to your comment? I can't tell. The UI is sorta confusing. Also, the gmail sign in function for ZenDesk seems to be completley broken and I am randomly signed out of this forum at times. Sorry for the complaints, just trying to help.
Ah, yes depending on your texture, Autodetect could fix this as well. Autodetect removes transparent pixels. And the fix needs padding to work. It sounds like your image might have already had some transparent padding so simply disabling Autodetect will fix. For the image I was testing on, I had to add the transparent padding and then disable Autodetect.