Im having some pixel trouble when using a depth stencil buffer for a mask and a texture when running my 2d game.
The mask stencil is rejecting the pixels outside itself, but the problem is that you can clearly see where its cutting off the pixels, like its not using any anti aliasing.
I wanted to know if theres a way for it to blend out the pixels where it cut or something, im not an expert on this matter.
Please do ask question, it can only help!
Hmm, well that would still show those jagged pixels, im trying to find a solution to blend them better with the environment. Like anti aliasing would do.
Itās a local arena game and the players can choose different styles for their player (the circle), and I thought it would be a good idea to mask the players original circle and put the style (texture) they want to use on it, so I wouldnt have to hardfix with a circle texture ontop of the normal one.
Something Iāve done before in these situations, is so super-impose an image layer on top of everything else that inlcudes some shading and rounding outā¦
That TOP layer is set to match the player in size, so that no matter what ātextureā you select for the character, it can have scratches and wounds and decals/numbers on topā¦
But yea it wouldnāt be much of a problem to just make a few sprites that I can switch between when the players are changing skins, the sprites are only 60x60.
Its just typical me to find some fancy pantsy solution to everything and fail
Ok, here is the image. The part you want is the zoomed scopeā¦ Its not exactly what you need, but I think its the same sort of problem:
Ill post the image, then explan:
So, the scope actually draws a few rectangular segments of the scene, in a cluster that is āroundishāā¦ I cant remember how many, maybe 8 recantnglesā¦
Then, I draw a sprite that is just a ring with a cross and som glass, to cover up the jagged lines around the circle, and PRESTOā¦ Round scope.
This is like replacing player uniforms dynamically, no?
I think its cool. You will never get to practice or invent methods things like that, if you wait for the ābigā projects to come along Dont foreget to post an image under showcase when its playable!