0
votes
0answers
23 views

Masking between two different 2D sprites in XNA

I'm rewriting a client (2D) for an old game. When rendering a character, the player has a type of hair and an optional type of hat. As far as I can tell, the game does the following to clip hair that ...
0
votes
0answers
29 views

XNA 2D Stencil Buffer Rotation

I am currently working on a 2d game related to planets and am trying to get a stencil buffer working with rotation. I currently have a stencil buffer found from another related answer but it refuses ...
1
vote
1answer
78 views

Masking away part of image with mesh

I need to remove a section of an image using a 2D mesh. Since the image is destructible (artillery game style), it would be helpful to shrink the image in memory afterward. The portion in the blue ...
16
votes
2answers
3k views

Best way to mask 2D sprites in XNA?

I currently am trying to mask some sprites. Rather than explaining it in words, I've made up some example pictures: The area to mask (in white) Now, the red sprite that needs to be cropped. The ...