Friday, February 4, 2011

Graphics engine overhaul

I should have posted this yesterday, but I forgot to. I re-vamped the graphics engine to accommodate post processing. As of now I have a glow post process implemented. To make an object glow, we give it a glow map - a texture mapped to the uv's of the object that's black except for where we want the object to glow. The new system renders the scene to a render target instead of the screen, and then blurs the areas of the image where the glow textures are mapped before drawing it back out to the screen.

I also finished up the lasers, though if I can get a post processing/particle effects trail happening, I might redo the lasers again to make them more efficient. In order to get them to be the right shape, I had to make 3D models instead of just billboard sprites, but if I can figure out how to make a trail behind an object, I'll go back to the sprites. I have to work on the trail anyway for the ships and the pods, so if i can get it working right I'll try it out on the lasers too.

No comments:

Post a Comment