Institute of Computer Science
  1. Courses
  2. 2021/22 spring
  3. Virtual Reality (LTAT.06.019)
ET
Log in

Virtual Reality 2021/22 spring

  • Introduction
  • Sample Scene
  • Movement Systems
    • Portal Travel
    • Short Dash
    • Wand Flying
    • Third Person Teleport
    • Nodding
    • ArmSwing
  • Menu Systems?
    • Lever
  • Interactions?
    • Minigame
    • Portal Interactions
    • Inventory
    • Ghosting
    • DoorInteractions

Portal travel (Jonas B)

Portal travel itself is quite easy to implement. One just needs two objects that are considered the portals. If the players hitbox then hits the collider of one of the objects, it gets teleported to the position of the other object.

After implementing this rudimentary concept, I looked into making this system much more expanded. For example it should show the view on the other side of the portal. Or should interact with more than just the player (throwing an object through it.)

Some of the sources I consulted:

  • Toms dev blog
  • PortalsVR (unity 2019)
  • Another vr portal repo
  • Another one :)
  • Brackeys video on portals
  • Jaanus' source

Demo video

Attach:portalsdemovideo.mp4

Update 10/03/22

I've dropped the idea of trying to make a camera show the other side of the portal. Oculus Quest 2 is simply not ready for this yet. A lot of issues arose with the 2 eye cameras that each had to render a picture of what was on the other side. I did not manage to create one complete picture of the two merged. This basically always lead to feeling cross eyed and made me feel nauseous.

I've settled for a simpler approach based on the initial implementation. With some cool effects that add to the vibe of a wizards portal and the optionality to create portals with different colors, rotations, ...

I spent close to 20 hours trying to figure the camera thing out. So a lot of time was "wasted" here. However, I decided to implement a Dashing system to the game so that I can at least make up for the lack of complexity of the portals.

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment