Android - Partial Transparency,
Members - Reputation: 148
Posted 02 July 2012 - 02:03 PM
Any help anyone could offer any help, or at least point me in the right direction, I'd greatly appreciate it.
Crossbones+ - Reputation: 7562
Posted 02 July 2012 - 03:26 PM
You can first render the wall normally, then render the character without depthtesting (fairly simple but probably not quite the effect you're looking for)
you coukld also Render the wall twice, first at X% opacity without depthwrites, then render the character, then render the wall again at 100-X% opacity and additive blending.
Those two effects basically just make the character visible through the wall and might not be what you want.
You could also project the character onto the wall (in black or grey) (or the walls position rather) (towards the camera) and write that to a separate otherwise white texture, apply blur to the texture, render the character normally and finally render the wall using the greyscale characteroutline texture as the alpha channel. (There are probably faster ways to do this aswell).
Another option could be to render a scaled up version of the character to the stencil buffer and use that for a stencil test when you render the wall (works with fixed function), or render to a texture and process in the pixel shader (to get fancy edges for example), (With ES 1.1 the options are a bit limited, but with 2.0 you can do pretty much anything)
The voices in my head may not be real, but they have some good ideas!