Portal Script

Hello guys, I’m searching for a portal script, like in valve’s game “Portal”.
Here are some examples:
http://www.abload.de/img/infinite_portal1a4b.jpg

I want to create a multiplayer game with portals, but I can’t really script
:? I played a mini game like this at yoggis hp:http://yogware.bluegillstudios.com/blogfiles/Portal.jpg

Bye, Gaston

You’ll need Pro to do the portal effect correctly (using RenderTextures) but otherwise a simple transporter script will work. Look at moving the player’s Transform to the exit portal when you hit a trigger on the entrance portal. If you go through the scripting tutorials you should get the hang of it pretty quickly, its really not that difficult.

I seem to remember someone posting some sample projects that included “portals” a while back. Did you search the forums?

The project folder for portals is here. I’ve been meaning to change my contribution and let a few people know about it, but things are just too busy right now:

http://forum.unity3d.com/viewtopic.php?t=2543&start=30

Basically my idea of dragging ragdolls with the mouse, and having a mouselook on the camera at the same time is a non starter. I didnt really do this project justice, but at the time I didnt know much about unity.

AC

Thanks, I downloaded the folder…
I’m going to test it now.

Okay, I isn’t working…
When I shoot an portal, nothing happens.
Does anybody knows a solution for this problem?

It was built with Unity1.6 theres been a few shaderlab changes since then. That may be the issue. Make sure theres no unassigned slots in the inspector, and are there any errors or warnings in the console?

oh and its rightclick to fire a portal.

AC

oh…
Rightklick? In yoggis demo, it was the left mouse buttom…
Ok, thanks! I’m trying it now…

Nothing happens…

Now, I found the problem, I’ve moved the player and the script had some plroblems with…