Replies: 1 comment
-
I agree that Sprites won't cover well your usecase. I see a couple of paths you could take:
The downside is that you lose out on sprite batching. So it depends on how many quads with your custom material you are going to have on screen at any time. There's maybe also the option to specialize the SpritePipeline, but I have not done it, and I think it's not possible out of the box, you'd need a fork, but others will know more on the subject. Hope it was a bit helpful. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a game in isometric view with 2D assets painted in watercolor, and the game needs to be unsettling (terror, etc), so dynamic lighting is very important here.
I need to understand how to change how a sprite can be rendered, what is possible, what tools do I actually have.
So far I only encountered Alpha blending (both from PNG and overall transparency), and color tint. I think I saw masking as well, but unsure.
These fall a bit short for what I want; it is doable but I don't really like the path I would need to take.
I do have already a custom ray-tracing alike algorithm that is able to define the brightness per tile; and I could even add for direction of the light too. And colors.
Let me add here the things that I am looking for, and let me know if any can be done and where to look to learn about them.
Most of the effects I'm looking for are for pre-processing the data of the sprite itself before rendering, then rendered in one shot, not to be applied in layers in screen. We could say that I'm looking for some sort of "imagemagik/gimp" to work on the fly for the sprite just before it is rendered. Also, most of those effects can be cached as new images if needed; as they're going to change slowly. (or even I could precompute a huge collection of options to grab from there; I might need maybe 20 variations of the same sprite only)
The main problem right now is that sprite tint only darkens it, what would benefit me the most right now would be a different tint that works like "screen" or "overlay", so I don't need 2 sprites to represent "normal lighting" plus "very bright lighting".
I think that what I'm asking are shader-related but I never used anything on that. If you can recommend me any exercise to try, it would be nice too. But well, the problem is that I have no idea what I'm asking, what I should be searching for any of this.
Beta Was this translation helpful? Give feedback.
All reactions