Advertisement Jump to content
  • Advertisement


Sign in to follow this  
  • entries
  • comments
  • views


Sign in to follow this  



I have finally figured out how to use Stencil Buffers. Yes, that's right, up until now I've never actually used one. And it took me ALL fucking day to figure it out. Of course, it didn't help that for some reason I couldn't attach a depth/stencil surface to a render target with alpha. I hope that's normal, cause if not I'm going to scream.

In the above image I've implemented a 'swiss-cheese' effect wherein 100 of the bouncing balls have been dedicated to creating a stencil of 'holes', and the rest are rendered only where those previous sprites have marked the stencil. It's pretty, but it ain't fast (notice the blazing framerate there). Well, it could be fast, I have no idea, I don't know how to optimize for this, I've got it minimizing state changes as much as possible.

In other news, i've also added custom blending modes for sprites and other layer objects in general. I've created a joystick and keyboard object for my input plug-in and I've made the shader interface a little better. So far, it's shaping up. I'm trying to think of everything + the kitchen sink for the sprite interface, stuff I'd like to see sprites do that other libraries lack or have lacked in the past. Suggestions are welcome as long as you're not on my 'list'. That's right Chad, I'm talking about you.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!