It's a pretty nice effect, though I don't know how they do it in games I've played. I can recall in Splinter Cell and Fatal Frame 2 some instances where you walk through curtains that react to the player.
My User Contributions master list - my initial post links are down but scroll down page to find list to active links