#My next thought is to export the rain
1 messages · Page 1 of 1 (latest)
Here's background, midground, and foreground. Midground and foreground are the two layers with the rain
So far I haven't spotted anything off
Of the initial two screenshots, I assume the first left one was from Game window in Unity, and the next one was presumably from some external image editor?
That's correct, yeah
I've spent a few hours now looking over different possibilities, rendering settings, adjustments and anything else I came across. The onlny thing that provided a slightly different visual was using trilinear and bilinear filter modes, however doing this provided other weird artifacts that I wasn't expecting to see.
It would be different but I don't see how that'd help
My thoughts exactly, and the results agree.
This was kind of last resort before exporting everything separating and manually dealing with it, just a terrible thing to need to do for something like this
Separating what?
The rain particles out of the existing backgrounds and making another layer. It was intended to be together
Are the raindrops "in" the background image in some fashion that they need to be taken "out" of it?
If you want to blend them, I would expect you want them as separate to begin with
Yes, they're all drawn together, I mean like it's the rain on the related sprite.
It actually hits the objects and splashes a bit so in this situation it made sense to just put them into the same animation
Perhaps I understand the setup now, but I don't see a reason why it'd be any issue
Assuming you did export that image with semi-transparency intact
I could verify it on my end if you send the specific image that's found in Unity's side of the assets
But other than that I'd try to confirm that semi-transparent sprites from other sources do blend as we expect them to, I use these two for testing
Yeah, as far as I can tell it is, like even in unity you can slightly make out the layer below so it's like almost rendering at like 95% opacity or someothing
When you mean unity side, like the asset and meta file?
Just the png file with the rain that you imported into Unity
They are definitely fine
Easier if there was some obvious flaw!
I'd try slapping my test images as sprites into the scene to see if their alpha seems to disappear as well
Or if the blending is otherwise weird
Right, so I'm definitely stuck for solving it, and maybe it's just a bug with Unity, I'm not sure.
Well thank you for trying, if you think of anything else that might be worth checking, just tag me 🙌
Stuck is a relative term, but for now our tires are just kicking up mud
This part of Unity is so basic it bugging out is almost unheard of, which is why I'd be regressing to more basic tests and sanity checks such as with the test sprites to see how they blend
There's a possibility that the weird nonexistent blending we see is a consequence of Unity using linear color space while also maybe doing weird stuff with premultiplication
But I wouldn't expect a result quite like this
Even if there's no clues pointing to anything else at all
A stab in the dark but I might try with sprite unlit material instead of sprite lit
I actually tried unlit too, it didn't yield correct results either. I played with the lighting settings too in case, but that had no changes.
Did you compare to the test sprites I sent here
I don't see anything you sent
Oh missed that, I'll check those too
These appear to look fine as far as I can tell, so does that still seem to point to the assets themselves? I just literally dragged them into my project and right into the hierarchy.
I don't really know either, I mean importing them into another program has them render correctly. The only thing I change from default unity is no compression and filter mode set to point, otherwise a normal import.
You can change the test sprites to that too, even if it should have no effect
they don't appear to have changed at all doing that, so yeah not that either
Could also try just importing the sprites with the rain again
Animators don't cause any weird color changes that I know of.
I've actually done it a few times before anything else in case that was an issue, but the new project still had the same result too, so not sure that would be it
Animators override component properties
So it can overwrite sprite color including alpha, but it shouldn't be doing that and that should have no "weird" results either
My animation is pretty basic too, just swapping the sprite, I checked that color wasn't being overridden incidentally, and it doesn't appear to be
Big mystery
I'd try importing it again, maybe as a copy, then just dragging it into scene to see if the raindrops are transparent or not
Maybe even make a test image with just the raindrops, or their respective color and alpha values
Yeah just imported the whole thing fresh from the external files too, same result.
Yeah, that was next plan, honestly just going to export it as separate images and that way I can adjust the alpha directly if it ends up being like that again. I'll have a bit of extra work to keep things organized
Hmm I guess that has to work even if the alpha is wrong, since you can control the sprite renderer alpha
Yeah, that is my thought too, it's literally just the rain, so strange that everything else is fine. Again, thanks for being thorough, guess it's just a weird lost cause