>> |
11/07/08(Fri)19:00 No.2628030Badly and slowly, to be honest. That shit runs fast just because the graphics are so bland (as in very little geometry).
As
people have already said, watch the commentary. It just renders the
scene again, using the stencil buffer to clip it (it clears the stencil
buffer and draws the portal oval in it, then draws the scene with
stencil testing enabled). It does this recursively (the oval is drawn
summing 1 to the stencil buffer on each iteration, then draws only
where stencil matches the pass number, so if two ovals intersect it
draws only over their intersection).
For a proper implementation
of portals (and I'm not talking just about graphics performance, but
also featureset, versatility, and physics interaction), look at Prey.
Shame that as usual the better game gets the worse tech and vice-versa.
Also
on OP's pic you can clearly see that only the first two iterations are
real, the rest are faked by drawing the image over and over. |