Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - csumsky3

Pages: [1]
1
Support / tk2d Sprites and Unity Post-Processing Depth of Field
« on: April 17, 2019, 05:00:20 pm »
Hello!

Is there any way to get tk2d sprites to work with the latest Depth of Field effect that is part of Unity's Post-Processing stack? I'm done a bunch of digging and am pretty sure the problem is that none of the tk2d shaders have depth info, but I'm not very shader-savvy and have no idea where to go from here really. Any help would be greatly appreciated! I can get DoF to work with normal Unity sprite renderers, but just not with tk2d sprites.

Chris

2
Support / tk2d animated sprites occasionally invisible on WebGL build
« on: January 19, 2017, 06:36:13 pm »
Hello!

So this issue is really hard to track down, so mostly I'm just wondering if anyone's seen it before.

First, some background. I have a 20-Level game, each level a separate scene, each utilizing tk2d's TileMap to build out the levels. Player Character, Enemies, and everything else gameplay-related is atlased, animated and rendered via tk2d (UI is handled through Unity's UI system, and the sprites are thus not going through tk2d, but UI really has nothing to do with this issue, so I don't think that info is that relevant).

Ok so the issue. When I'm playing the WebGL build that's staged on a server, running in a browser (I mainly test on Chrome, so that's all I've confirmed it happening in so far), after I've been playing the game for a long time, some animated enemy sprites will suddenly be invisible when the scene loads. They're still be there, attacking me and colliding with me, but the sprites just don't show. I don't think it's a layering or sorting issue, as the issue is random and the same enemies that were showing fine a playthrough before will now be invisible. Also, once I start seeing invisible enemies, if I die and respawn (which reloads the scene), the player character will now be invisible as well. Once the issue starts showing, the only way I can fix it is by refreshing the page from the browser - switching / reloading scenes doesn't fix it. One thing to note is that it only seems to happen with animated sprites.

If I inspect the browser once the issue starts, the console isn't that helpful. But I'll be sure to follow up if I see anything that might be useful (I'm about to start another playthrough to test for the issue). Anyhow, quite a weird one! Any insight or help would be greatly appreciated!

Cheers

Pages: [1]