One Bit

One Bit‘ is a highly configurable and easy to use NPR post-processing effect that will give your games a retro and original look. It uses a dithering with blue noise (pdf) to achieve an stable render image.

store00
store01
store02
store03
store04
UNITY ASSETS STORE ($10)   DEMO

Adding the effect.

Use ‘One Bit‘ is easy. Select the camera you’re going to use (usually called ‘Main Camera‘) in the ‘Hierarchy‘ editor window (1), then click on ‘Add Component‘ button in the ‘Inspector‘ window (2).

usage_00

 

Now you can select the effect in two different ways. The first way is using the search field and write ‘One Bit‘, then select the effect (1). The second way is select the category ‘Image Effects‘, and finally ‘One Bit‘ (2).

 

usage_01

You can also add it by code. To do this you must use the namespace ‘OneBitImageEffect‘. If ‘mainCamara‘ is a valid camera:

using OneBitImageEffect;

...

OneBit oneBit = mainCamera.gameObject.AddComponent<OneBit>();

 

Check the documentation included in the code and take a look at the example code in the ‘demo‘ folder.

 

Setting the effect.

The ‘One Bit‘ component has these areas:

onebitinspectorgeneral

 

  1. General area, to change the strength of the effect and the mode.
  2. Noise area, to change the parameters of the noise.
  3. Color area, to change the Blend functions and color gradients.
  4. Image area to change settings such as saturation and brightness.
  5. To view this site :).
  6. To reset some values.

 

General area.

The ‘Amount‘ field defines the intensity of the effect, from 0 (no effect) to 1 (full). With ‘Mode‘ you can select the mode of effect. You can select three modes: Screen, Depth and Layer.

The ‘Screen’ mode affects the entire screen. With the ‘Depth’ mode so you can define that area where the effect is applied, depending on their depth. This mode requires deferred renderer.

onebitinspectordepth

 

With the ‘Layer’ mode, you can specify which layers of your scene is applied to the effect.  This mode requires deferred renderer.

onebitinspectorlayer

 

Color area.

The first thing you can change in this area is how the colors blend together. To do this we provide more than a dozen functions. They are very similar to Photoshop. ‘Solid‘ is the default function.

You can use three different forms of gradient, besides the function ‘Solid‘ affecting the entire screen. These modes are horizontal, vertical, circular gradient. You can also invert the colors.

onebitinspectorcolor

Image area.

In this area you can control the brightness and the contrast.

 

Frequently Asked Questions.

  • CAN I USE THE FREE VERSION (PERSONAL EDITION) OF UNITY3D?
    Yes, since the version 5 of Unity, this package works both free and pro version.
  • WHAT VERSION OF UNITY SHOULD I NEED?
    You need the version 5 or higher.
  • DOES IT NEED ANY SPECIAL HARDWARE?
    One Bit‘ needs a GPU that supports Shader Model 3.0 or higher. At desktop PCs, any card compatible with DirectX 9.0c are supported (ATI Radeon HD2000 or higher, Nvidia GeForce 8 (8xxx) Series or higher or Intel GM965 or higher). In generall, any device with a decent GPU after the 2009 should work.
  • INCLUDES SOURCE CODE?
    Yes, all source code is included (also shaders).

You Might Also Like

No Comments

Leave a Reply