Prey style portals!

Here’s something I wanted to try and accomplish, Prey-like portals. So, I worked on it a little last night, this morning and tonight :slight_smile:

Here are some links :slight_smile:

Web player:… mouse didn’t seam to work in IE
http://web.mac.com/nathanwardenlee/Unity/Players/Samples/Portals.html

Web player download:
http://web.mac.com/nathanwardenlee/Unity/Players/Samples/Portals_WebPlayer.zip

Mac:
http://web.mac.com/nathanwardenlee/Unity/Players/Samples/Portals_Mac.zip

Win:
http://web.mac.com/nathanwardenlee/Unity/Players/Samples/Portals_Win.zip

Something is wrong with mouse x axis movement in Win compilation :?

Very nice work! There’s still room for improvement, especially in making the movement into and out of the portals seamless (no jump should be felt) however I can say that this is one of the best attempts I’ve seen in a while. Are you going to build upon this or is it a one-time experiment?

The moving “donut portal” was awesome. I hope you can reduce the “jump/lag”, should be possible.

Awesome portals!

I know that there is the slightest little jump, but you could probably hide that with a particle effect!

Just a little flash as you go through would totally hide it.

Great work!

Wow! Amazing work!

I was wondering if this was possible the other day, and you answered it for me!

Hey, also, hows Modo + Unity? I’m interesting in learning Modo but want to test it in Unity before I go too far.

Hey Everyone,

Thanks for the kind words :slight_smile:

As for the bugs, I don’t really have time to fix any of them since I really need to focus on my “Real Job” which I really enjoy anyway, but, that’s why I’m just giving you all the project for free! :slight_smile:

I tried to upload it to the forum, but, it kept timing out…
http://web.mac.com/nathanwardenlee/Unity/Players/Samples/PortalsProject.zip

The only thing I ask is… if you can fix the bugs, please post up the fixes for everyone to be able to get to.

@VoxelBoy: Yeah, I just wanted to see if it could be done and it is, so, I’m bored now, haha :slight_smile:

@JAMiller: If you don’t need character animation, I personally find the Modo to Unity pipeline to be great!!!

There’s a UV bug as of 302 (the version I have), but, just PM me if you run into it as there’s a pretty simple solution for it.

Thanks,
God Bless,
Enjoy,
Nathan

FYI, here’s a link to a vid that caused a stir this summer:

Portal on the iPhone, done in Unity

:shock:

So yes, doable and awesome. Nice work Nathan!

I saw that the other day. Those are some awesome graphics for the iphone.

Wow that Portal vid is awesome! Unity really does rock, doesn’t it? :slight_smile:

Nathan - thank you SO MUCH for sharing your code with the community. That’s an awesome thing you did and great for people to learn from.

I love the how open this community is. Good work Nathan.

Wow at the iphone demo of portal. How do they do the portals without render texture?

or do they use it, i didnt think it was available on iphone? :roll:

Now you got me wondering… It’s possible based on what I see in this video it’s just duplicating rooms and making doorways into them. Notice its just a big cube and he only puts the portals on the outer walls… You could theoretically just duplicate and mirror the room and it’s objects to fake a portal this way.

I’m just speculating really, I actually have no idea if render to texture is available on iPhone.

Wow! I love Portal! Great game!

@Higgy: Thanks Higgy! Sweet video too :slight_smile: I love that game! Didn’t play it on the iPhone, but played the one bundled in the Orange Box and it’s super addicting!

@psychicparrot: No problem, I just hope someone is willing to track down the couple of bugs in it (I may do it one of these days) and share it with others :slight_smile: I’m really excited to see if anyone will make something with this :slight_smile:

@makaleth: Thanks makaleth! The thing is that these portals don’t have to use a render texture. It’s a 2 camera setup with a depth mask shader on the portal. I don’t write for the iPhone, but, I’m assuming it can have a two cam setup too. Doing this is actually a lot less complex than it may look at first glance :slight_smile:

Well, I guess I couldn’t stay away from the project :slight_smile: Here’s an update with some bug fixes! And now it will make it so you can walk on walls… etc…

It should be a smooth transition between portals too.

Updated project files coming soon… :slight_smile:

http://web.mac.com/nathanwardenlee/Unity/Players/Samples/Portals.html

I thought the visuals in the portal demo were extremely average (that being said, portal itself wasn’t exactly a ‘stunner’ in terms of looks).

But, much like the game it was based on, it looks like it could be made into a great game :slight_smile:

lol ummm… are you supposed to fall through the floor when you go through a portal?

For a multimedia master course I’m creating a “House of the future” application which features several media integrations (twitter messages, augmented reality, etc.).

To make it somewhat of a Unity showcase too, I’m integrating several “cool” things as well, including this.

So if you could post your latest build/fixes, please do so :).

See the status/concept of my project here: http://www.few.vu.nl/~mhn212/mt/

Hey Leepo, I went to your house and trashed it. Stuff was everywhere, man. I even threw your laptop!

THEN I went to the bathroom - man, the house of the future really needs a cleaner. There is some serious limescale build up in the sink, toilet and bath. I would recommend bleach :wink:

Nice demo - not sure why it would need portals, but hey if it’s a house of the future then in the future I know I want some portals around the place so … cool!

:smile:

@psychicparrot
Thanks…but was this really necessary?

The current demo was made only to fix the walker, interaction and physics. It uses the shadow demo assets&apartment, these assets will be replaced. The real house will feature 2 floors and 9 rooms. The portals will make a bit more sense there ;).

Anyway, I won’t hijack this thread any further, once it’s next to finished I’ll create a showcase topic.

Wow great work , especially the portal cameras. Nicely done :smile: