Archived

This topic is now archived and is closed to further replies.

Xetrov

Serious sam portal effect

Recommended Posts

If you''ve played Serious Sam, chances are you''ve seen the portal/teleporter thingy. All I want to know, is how in the hell do they do that? Its basically a box, which, when you look at it, you can see the destination.... Well, its difficult to explain. but a damn cool effect. I want it!

Share this post


Link to post
Share on other sites
Unreal and UT use this effect as well. I''m not sure about Serious Sam, but both Unreal''s use portal engines. One of the good things about portal engines is that you can have special effects at places where portals connect (or any of their edges in general). Things like reflection and seeing into another area.

I can''t really explain how portal engines work (they can be pretty complex), but I''m sure you can find an explanation somewhere. BTW: You can delete your duplicate posts.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites
It isn''t that hard.
Read this tutorial to see how it works, a bit old but still true :

http://www.flipcode.com/portal/

(Portal Engine tutorial)

-* So many things to do, so little time to spend. *-

Share this post


Link to post
Share on other sites
The easy and fast way would be to make a texture with an image of the destination. This can also be extended to show dynamic changes (movements) in the destination area. Set the camera in this area and render to the backbuffer then can this buffer be copied to the texture.

Another way to limit the drawing area is by using the stencil buffer. Like you do for other things like reflections. The teleporter could be in any shape.

Share this post


Link to post
Share on other sites