Monday, 18 October 2010

Status Update

And boom! New job, somewhere even further north and colder than Dundee. I've actually had the job for a couple of weeks now, but what with the chaos of moving and settling in I figured The Oblong could rest for a few days.

I've even updated the code a little bit in the interim.

See, I was getting really very annoyed at the way transparency doesn't work in my deferred shading system. I don't really need very much in the way of translucency support for the roguelike-like, just enough for some water and perhaps a few lit smoke-like effects. Seems like there should be a solution...

And lo, there was extremely crude hackery. Use a screen space stipple texture to do cheesy alpha-tested transparency and perform a chunky Gaussian blur over transparent areas as a post process. As ever: if in doubt, blur more.

I've managed to confuse my material parameters target somehow such that the specular is NaN-ing in my face, so I've temporarily hacked in constant specularity to preview the water a little better. Behold its being-illuminated-by-deferred-lights glory!


I've actually shrunk the image a bit, the blur is a bit more obvious in actual fact. Still, the blue, green and white lights are clearly visible in the water as wobbly specular highlights, and the water itself rendered as standard opaque, unsorted geometry into the render targets.

No, I don't know what's going on with the crazy purple highlight on the left. I think the tangents are a bit screwy there, and the glowing mushroom that's supposed to source the light is buried in the floor. Yaybugs!

No comments: