All Projects → pr0g → Unity Portal Rendering

pr0g / Unity Portal Rendering

Licence: mit
Super small example of using offscreen render targets to achieve a portal effect in Unity

Projects that are alternatives of or similar to Unity Portal Rendering

Klaksyphon
Syphon plugin for Unity
Stars: ✭ 149 (-27.67%)
Mutual labels:  unity, graphics
Rimlight
Customizable rimlight shader for Unity that includes pulsation and noise scrolling. Give your scenes that extra oomph!
Stars: ✭ 170 (-17.48%)
Mutual labels:  unity, graphics
Gltfast
glTF runtime loading library for Unity
Stars: ✭ 156 (-24.27%)
Mutual labels:  unity, graphics
Urdf Loaders
URDF Loaders for Unity and THREE.js with example ATHLETE URDF Files
Stars: ✭ 129 (-37.38%)
Mutual labels:  unity, graphics
Unitybarcodescanner
Simple Unity Barcode Scanner
Stars: ✭ 180 (-12.62%)
Mutual labels:  unity, camera
Textureupdateexample
An example showing how to update textures from a native plugin in Unity.
Stars: ✭ 133 (-35.44%)
Mutual labels:  unity, graphics
Computestochasticreflections
Compute Stochastic Screen Space Reflections for unity post processing
Stars: ✭ 163 (-20.87%)
Mutual labels:  unity, graphics
2d Unity Experiments
A collection of visual Unity experiments with latest packages (URP, Shader Graph, Cinemachine, etc).
Stars: ✭ 107 (-48.06%)
Mutual labels:  unity, graphics
Kinovision
Frame visualization utility for Unity
Stars: ✭ 177 (-14.08%)
Mutual labels:  unity, graphics
Unity Dithered Transparency Shader
Unity material and shader for applying clipped, dithered transparency
Stars: ✭ 174 (-15.53%)
Mutual labels:  unity, graphics
Rcam
Real time volumetric video capture for live visuals
Stars: ✭ 128 (-37.86%)
Mutual labels:  unity, graphics
Asynccapturetest
Non-blocking screen capture example with asynchronous GPU readback
Stars: ✭ 191 (-7.28%)
Mutual labels:  unity, graphics
Lwrpshaders
A collection of high customizable unlit shaders for Lightweight Render Pipeline
Stars: ✭ 125 (-39.32%)
Mutual labels:  unity, graphics
Noiseball3
A Unity example that shows how to use the new implementation of DrawProcedural.
Stars: ✭ 147 (-28.64%)
Mutual labels:  unity, graphics
Pcxeffects3
Unity VFX with point cloud
Stars: ✭ 121 (-41.26%)
Mutual labels:  unity, graphics
Dfvolume
Distance-field volume generator for Unity
Stars: ✭ 161 (-21.84%)
Mutual labels:  unity, graphics
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-55.34%)
Mutual labels:  unity, graphics
Smo Shaders
A collection of shaders to replicate those used in Super Mario Odyssey's Snapshot Mode.
Stars: ✭ 97 (-52.91%)
Mutual labels:  unity, graphics
Unitydxrtest
A testbed project for Unity real-time ray tracing features
Stars: ✭ 172 (-16.5%)
Mutual labels:  unity, graphics
Deadsimple Pixel Perfect Camera
An exceedingly easy-to-use pixel perfect orthographic camera script for 2D scenes in Unity. Punch in a few specs and you've got a working pixel perfect camera. It's that easy.
Stars: ✭ 186 (-9.71%)
Mutual labels:  unity, camera

unity-portal-rendering

Overview

Super small example of using off-screen render targets to achieve a portal effect in Unity.

alt text

Info

Please see this accompanying blog post http://tomhulton.blogspot.co.uk/2015/08/portal-rendering-with-offscreen-render.html for an explanation of the techniques involved.

  • UPDATE (2020/07/22,23): Upgraded Unity project, minor desktop camera improvements, fixed minor bug with Teleport.cs, renamed main branch.
  • UPDATE (2019/01/28): Added touch screen camera controls when running on device.
  • UPDATE (2019/01/21): Added teleportation (so moving through a portal will spit you out the other side).

Note: There's an artefact you'll encounter when moving through a portal where the near clip plane of the camera will clip with the portal texture quad. You wouldn't get this if using the portal stencil buffer technique but unfortunately with render buffers there's no clean way around it. The logic can still be applied if you'd like to use it elsewhere.

Controls

Desktop

WASD - Camera forward/backward/strafe
EQ - Camera adjust height
Right Mouse Button + Mouse Move - Look around
C - Cycle between main camera and portal camera views

Device

One Finger, Hold + Move - Look around
One Finger, Double Tap + Hold - Move forward
Two Fingers, Pinch - Move forward/backward
Two Fingers, Pan - Move up/down/left/right (Camera space)
Three Fingers, Tap - Cycle cameras

Extra

I highly recommend checking out this excellent YouTube video on Portals by Sebastian Lague.

It covers quite a few more details that you might need for a full game and also comes with its own GitHub repo.

The video also kindly gives a shout out to the original article posted along with this repo! 😄

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].