impossible box

This is a demo to test out my remote portal system using multiple viewports and a GLSL stenciling.
It is a remake of Portal 2: Impossible Box seen here - http://www.youtube.com/watch?v=JAvbdU5NIyw

http://dl.dropbox.com/u/11542084/impossiblebox.jpg

and blend is here:
http://dl.dropbox.com/u/11542084/portals_impossible_box1.blend

It is quite possible the hackiest thing I have done in BGE.
do not try to understand how this works, It is even impossible for me to modify it now :smiley:

I once tried that with Video Textures, but 2.59’s Issues with Video Textures spoiled all my Tries.
This is great, even though I do not (yet) understand what the Code is actually doin’.
There is, however, a slight Twitch when goin’ through the Portal.

Well done! :slight_smile:

EDIT:
Well, Video Textures would anyway become to blurry when comin’ close.

Looks very nice, would be a great help for my game.

Hahahaa… i had so much fun with the .blend file. It’s like magic!
All this time you’re hacking bge with python only, or you’ve ever used c++ to modify some blender builts?
Really cool stuffs you’ve brought here. Thank you very much for those:yes:.

When I first looked through the .blend, I thought: “How is he rendering the scene twice?”.

Then I noticed the setViewport calls … I would never think of that. :smiley:

Awesome work, as usual.

Hahaha, very cool!

Hi, I assembled 2 new magic rooms:

  1. same as before, but I think it looks better:
    http://dl.dropbox.com/u/11542084/portal_2.6.blend

  2. I will let you figure it yourself, what is happening here:
    LMB - shoots spheres
    http://dl.dropbox.com/u/11542084/portal_weirdroom_2.6.blend

the collisions are acting weird though.

this awsome! i really like the second one with the spheres, you should think about making a full game with it.

Ingenious! Awesome work as always.:smiley:

WOW! JUST… WOW!! Martinsh, why don’t you just make a game? One that combines this portal style functionality with the outstanding other scripts and shaders that you came up with.:eyebrowlift2: At this point I really can’t say much about blender being somewhat limited.

yeah I was planning to make a simple mind-bending puzzle game with this.
The problem is that the setup is very messy and in most of the cases it just dont work. There is also some annoying collision problem when entering portals, so I just have to find another way to do this.

this is insanely fun
How the is this possible?
I’m still learning python so I understand your code
how would you explain this effect to a newb like me?

do you think update your script for blender 2.64?