• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by Andreas Rau · Dec 23, 2010 at 03:00 PM · portal

Portal 2-How to make a portal in Unity 3D

First of all, sorry for my english i am german.

After surfing in the internet i saw the upcomming game portal 2 and wondered how valve games made this portal thing, and my question is, how can i make portals in unity, where i can fly and look through just like in the game??? I know a bit of unity, but my talent is designing worlds in 3ds max, so i thought it would be a great thing to have the portal system in my world, so i'd have sth to play and not just to walk through. pls help me and thx for reading :)

here are vids of it:

http://www.youtube.com/watch?v=Bq2mZoKkqMw&feature=channel

http://www.youtube.com/watch?v=TluRVBhmf8w

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image efge · Dec 23, 2010 at 03:10 PM 0
Share

Willkommen bei Unity :-)

avatar image Andreas Rau · Dec 23, 2010 at 03:16 PM 0
Share

dankeschn :-)

3 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by taoa · Dec 23, 2010 at 03:09 PM

The closest thing to Portal rendering (this is the name of the technique, and, no, it is not named after the game :) ) you can get in Unity is to use Render textures (Pro Only), get cameras to render into those the scene where you'd like your main camera to go to once it goes through the portal, and finally teleport the main camera there when you go through the 'portal' (use collision triggers).

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Andreas Rau · Dec 23, 2010 at 03:15 PM 0
Share

woow, great idea, thank you verry much :) but im not clear about how i can render a camera in a texture, do you know a tutorial or sth. like that??

avatar image taoa · Dec 23, 2010 at 03:28 PM 1
Share

You can create, either by script or as new assets, 'RenderTextures'. Create cameras where you want your portals to lead to, and assign to each of them a render texture (look at the camera's component 'Target Texture' property). Now those render texture will be filled with whatever the cameras are looking at. Apply them onto planes or whatever surface you want to go through. You'll probably have to rotate the rendering cameras to compensate the perspective otherwise those surfaces will look 'flat'. But start without worrying about that :)

avatar image Andreas Rau · Dec 23, 2010 at 03:40 PM 0
Share

ahh, now its making sense, thank you, im trying this with prefabs that are build like decals of a bullet, probably i need a few days to complete this :)

avatar image taoa · Dec 23, 2010 at 03:44 PM 0
Share

Best of luck !

avatar image Andreas Rau · Dec 23, 2010 at 05:13 PM 0
Share

I've got a tricky probelm: when i'm going throug the portal I'm in the trigger of an other portal, so i need to script a movement out of the portal in direction of the normal of the portal, every time i'm going through it sounds a bit stupid, sorry for lame explanation _

Show more comments
avatar image
1

Answer by Flafla2 1 · May 04, 2011 at 08:03 PM

http://answers.unity3d.com/questions/54955/portal-physics-effect

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fireDude67 · Aug 21, 2011 at 10:24 PM 0
Share
  • If you find that a question is a duplicate of another please "report" it using the link below the quesiton.

avatar image
0

Answer by -phly95 · Oct 21, 2012 at 05:50 PM

The game "Portalizer" for Android and Unity Web has Valve looking portals, and it's really well made.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image imilanspinka · Dec 26, 2015 at 07:07 PM 0
Share

Yeah, we know, but this is not an answer.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

HDRP shadergraph material not visible in renderTexture if render pass is set to After post process 0 Answers

Rewind? *confused* 4 Answers

Creating portal camera view with render textur 0 Answers

True Portal Effect 1 Answer

Better solution for teleporting portals in unity 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges