   Portal making in OpenGL
  I was thinking of something I could try to do in OpenGL. I sit down and think... what could I try to recreate? Portals hit me, could it be simple or very complex. I'm trying to do a portal that you can see that next place but if you walk around the portal, it's flat and there is nothing and you can't go through. So tell me, how would you go about making a portal in OpenGL?   
  Use a scene graph to determine whats on the other side, then you render that scene to a texture then apply the texture to your object in the current scene that lets you "see" into the other scene.   ;  I was thinking about that, but how do you get the scene rendered to an image if you can't actually see that scene? Or is there something else I'm missing? Say an enemy see's that portal and they walk through it as well, I'm going to need to find some way to be able to copy that area down to an image file.   ;  - Position the 'camera' at the location the portal looks into- render to texture the scene the camera can see- reposition the camera to whatever viewpoint the play can see- render scene   ;  Alternatively you can use the stencil buffer and clip planes to restrict your drawing to the portal's surface and recursivly render your scene (starting at the current section of the camera) and applying the portal transformation to the camera setup at each point.IIRC this is the way the Unreal engine handled portals back in the Unreal 1 days. Don't know if it still does it that way or not though.   ;  Thanks for the suggestions!   