Like a magician's top hat, this summer's movies have yielded a dazzling array of spectacular trick effects, allowing moviegoers to vicariously share such thrills as a stroll along the red vistas of Mars (Total Recall) and the sight of a Wild West locomottve that flies (Back to the Future Part III). Two of the season's blockbusters feature two of the most talked-about spectacles. In Die Hard 2, a terrified Bruce Willis skyrockets out of an exploding plane, and in Ghost, Patrick Swayze stands eerily and calmly still as a train speeds through him. Both those scenes were done via the blue-screen process, a technique that involves filming an object in front of a solid blue screen-the color that's easiest to remove later-and then combining it with various baakgrounds to create a composite. In the following pages, special-effects supervisors Micheal McAlister and Bruce Nicholson from Industrial Light and Magic, the post-production facility responsible for both scenes, illustrate, step by step, how Bruce emerged unsinged from a ball of fire and how Swayze firmly stood his ground. In Die Hard 2, Bruce Willis, as try-harder cop John McClane, finds himself in the worst fix of his perilous career: trapped in the cockpit of a grounded plane while hand grenades fall all around him like lethal hailstones. Thinking fast, Willis sees an ejector seat, straps himself in, and blasts off, rocket- like, seconds before the aircraft blows. Here's how it was done. ILM's McAlister and a 40-person live-action crew assembled in Southern California's Simi Valley to blow up a one-fourth-scale model of the aircraft with liberal amounts of jet fuel and gunpowder. ''We did it perfectly in a one- shot deal, but it takes a lot of figuring beforehand,'' explains McAlister, who needed five hours to set up the entire explosion scene. To capture the upward motion of the plane's fireball, he rigged safety-shielded cameras atop a large construction crane for both close-up and wide shots. Six weeks earlier, Willis-secured in an ejector seat taken out of a plane and rigged to a motorized contraption-had been filmed in front of a blue screen at the ILM studio in Marin County, as he turned slowly head-over-heels and rotated as if on a turntable. Willis was a ''real trooper,'' says McAlister. ''After shooting all night in Lake Tahoe, he drove straight here and worked all day with us.'' The biggest challenge of the ejector seat shot was to have Willis first appear very small, then come right up to the camera, larger than life. This was achieved by having the camera travel down a 100-foot-long dolly track and by speeding up the film to make his topsy-turvy spinning ascent look faster. After one month of intense work with optical printers, this composite image, merging the exploding plane and the blue-screen shot, was completed. First the optical printers removed all traces of the blue background, leaving Willis dangling alone. Then a Willis-shaped silhouette-called a matte-was made and superimposed onto the explosion footage, to block out the part that Willis would occupy. Finally, the two sequences were assembled like a high-tech sandwich.