All Projects → keijiro → Procamp

keijiro / Procamp

Licence: mit
A utility shader for adjusting videos.

Projects that are alternatives of or similar to Procamp

Candycoded
🍭 Custom Unity Components that are delightful
Stars: ✭ 96 (-4.95%)
Mutual labels:  unity, unity3d
Klak
Creative coding library for Unity
Stars: ✭ 1,347 (+1233.66%)
Mutual labels:  unity, unity3d
Trailboids
Just tried making boids with particle trails.
Stars: ✭ 93 (-7.92%)
Mutual labels:  unity, unity3d
Smo Shaders
A collection of shaders to replicate those used in Super Mario Odyssey's Snapshot Mode.
Stars: ✭ 97 (-3.96%)
Mutual labels:  unity, unity3d
Gameviewlayouter
A utility script that layouts game views with multiple displays.
Stars: ✭ 97 (-3.96%)
Mutual labels:  unity, unity3d
Unityheapcrawler
Reflection based heap shapshot tool for Unity game engine
Stars: ✭ 91 (-9.9%)
Mutual labels:  unity, unity3d
Forgenetworkingremastered
In short, Forge Networking is a free and open source multiplayer game (multi-user) networking system that has a very good integration with the Unity game engine. You wanna make a multiplayer game or real time multi-user application? This is the library for you.
Stars: ✭ 1,338 (+1224.75%)
Mutual labels:  unity, unity3d
Iridescence
Iridescence shader
Stars: ✭ 89 (-11.88%)
Mutual labels:  unity, unity3d
Unity Platformer
Unity platformer framework: IA, Ladders, Jumps, WallStick, WallJumps, Slopes, MovingPlatforms, OneWayPlatforms/Walls, Ropes and more...
Stars: ✭ 97 (-3.96%)
Mutual labels:  unity, unity3d
Banditdungeon
Demo project using multi-armed bandit algorithm
Stars: ✭ 94 (-6.93%)
Mutual labels:  unity, unity3d
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-8.91%)
Mutual labels:  unity, unity3d
Succ
Sexy and Utilitarian Code Configuration
Stars: ✭ 100 (-0.99%)
Mutual labels:  unity, unity3d
Unity3d
Syphon Implementation for Unity3D Pro
Stars: ✭ 90 (-10.89%)
Mutual labels:  unity, unity3d
Phoenixsharp
C# Phoenix Channels client. Unity Compatible.
Stars: ✭ 96 (-4.95%)
Mutual labels:  unity, unity3d
Spriteglow
A sprite glow effect for Unity game engine
Stars: ✭ 1,287 (+1174.26%)
Mutual labels:  unity, unity3d
Uia 2e
all the projects from Unity in Action 2nd edition
Stars: ✭ 97 (-3.96%)
Mutual labels:  unity, unity3d
Neolowman
Yet another low-poly man
Stars: ✭ 88 (-12.87%)
Mutual labels:  unity, unity3d
Unity Animator Helpers
A micro-framework for changing Unity 3D's Animator parameters with ScriptableObject(s). Designed to make going from custom scripts to Animator parameters easy. Works with 2D or 3D projects.
Stars: ✭ 89 (-11.88%)
Mutual labels:  unity, unity3d
Vrarmik
Unity Inverse Kinematics solution for arms in VR
Stars: ✭ 94 (-6.93%)
Mutual labels:  unity, unity3d
Darkconfig
DarkConfig is a configuration library for games which supports fast and expressive iteration
Stars: ✭ 94 (-6.93%)
Mutual labels:  unity, unity3d

ProcAmp

screenshot

gif

ProcAmp is a utility shader for adjusting videos. It's developed to provide optional functionalities of video playback with the VideoPlayer component that is newly introduced in Unity 5.6.

System Requirements

  • Unity 5.6

ProcAmp is compatible with all the platforms that supports VideoPlayer. If you find any problem with compatibility, plaese report it to Issues.

Features

  • Basic color adjustment (brightness, contrast and saturation).
  • Color balance (temperature and cyan-purple tint).
  • Chroma keying and spill removal.
  • Transform (trimming, scaling and position offset).
  • Color overlay (fade to color)

Implementation

There are two variants of implementation of ProcAmp.

  • The ProcAmp shader can be used with a material asset. It provides all the basic features of ProcAmp.

  • The ProcAmp component can be used with a game object. It also provides optional features that are useful in complex setups.

Examples of Use Cases

Apply ProcAmp and blit to the screen.

The ProcAmp component provides a simple rendering functionality that blits the resulting video to the screen with fit-to-screen scaling. This would be a handy option when trying to show the video in full-screen mode.

Typical steps to use

  • Create a VideoPlayer (drag & drop a video asset to the hierarchy).
  • Change Render Mode of the VideoPlayer to "API Only".
  • Add the ProcAmp component to the game object.
  • That's it!

Apply ProcAmp and show in a RawImage UI element.

When considering to support multiple resolution/aspect ratio, it's recommended using the RawImage component of the UI system to handle the situation properly. The TargetImage property of ProcAmp is used in such cases. With setting a RawImage to the property, it starts to update the RawImage with resulting video.

Typical steps to use

  • Create a UI canvas and add a RawImage to it.
  • Create a VideoPlayer (drag & drop a video asset to the hierarchy).
  • Change Render Mode of the VideoPlayer to "API Only".
  • Add the ProcAmp component to the game object. - Set the RawImage in the canvas to Target Image of the ProcAmp.

Use ProcAmp as a shader.

The ProcAmp shader ("Klak/Video/ProcAmp") is an unlit shader combined with the functionalities of ProcAmp. It's useful when using a material/renderer pair to display a video.

Typical steps to use

  • Create a quad object ("Create" -> "3D Object" -> "Quad").
  • Create a material and change shader to "Klak/Video/ProcAmp".
  • Set this material to the quad object.
  • Create a VideoPlayer (drag & drop a video asset to the hierarchy).
  • Change Render Mode of the VideoPlayer to "Material Override".
  • Set the quad object to the Renderer property.
  • Change Material Property to "_MainTex".

Apply ProcAmp and output to a RenderTexture.

When a RenderTexture is given to the TargetTexture property, it updates the given RenderTexture with resulting videos. This is useful when trying to use the video with other shaders or renderers.

Apply ProcAmp as an image effect.

The ProcAmp component works as an image effect when it's attached to a camera object. It overlays the resulting video onto the screen with fit-to-screen scaling.

License

MIT

Acknowledgement

The footage used in the example is originally created by LaBeouf, Rönkkö and Turner. That work was released under a Creative Commons Attribution Non- Commercial Share-Alike licence. See Acknowledgement.txt for further details.

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].