Skip to main content

Posts

FEATURED

Fortnite Procedural Construction Animation Shader

Fortnite Construction Shader This shader is loosely based on the one that was presented by the Fortnite developers in their GDC talk: Inner Working Of Fortnite's Shader-Based Procedural Animations.

 Here is what we will end up with:
This technique requires you to author the 3D model in a certain way, More or less how those Fortnite developers did.
So we need the authored 3D model and the shader that uses data we get from the model to achieve the desired effect.

There are some nuances here and there so make sure you don't miss out on the details.😗
The first step will be preparing the 3D model and putting in the required data. I used Blender 2.79 but any 3D modeling software would do.
3D Model PreparationModel It
Apply Vertex Colors: For the direction of flight
Each color is a component of a vector (x, y, z). This will be considered as local space.
Values range from -1.0 to +1.0 for each component.
Negative values are achieved by using values of less than 0.5 and positive values wi…
Recent posts

Advanced Billboard Shader + World-Space UI Support

Advanced Billboard Shader + World-Space UI SupportAs you know billboarding is basically a plane with a texture on it that always facing the camera.These are some examples of what we are going for. This tutorial is going to be pretty straight-forward and easy to follow along you will learn how to make a billboard shader that not only keeps looking at the camera but also keeps its relative scaling intact.We will also provide an option to keep it rendered on top of all the other objects in the scene. This will be most useful for world-space UI that needs to be rendered on top of other geometry.We will be making 2 shaders here,Modified Default Unlit shader :- This one is a general shader ( easy to modify furthur ).Modified Default UI shader :- This one supports whatever a UI shader supports along with our billboarding capabilities. So let's get started with making the first one. As usual create a new Unlit shader and dive into the properties we need.Properties { _MainTex ("Texture…

Get Started With Compute Shaders

Getting Started With Compute Shaders The shader that's a 'Jack of all trades'. Of course, it's the Compute Shader.
These beauties allow your general purpose parallelized code to run on the GPU.
These can be used to do some pretty cool stuff that would be pretty difficult to do otherwise even with multi-threaded CPU code.
When bringing up Compute shaders in the context of video games, It's mostly used in physics simulations and freaky looking particle effects and to a lower extent as a core part of some post-processing effects and render pipeline optimizations such as various culling operations like occlusion culling.

The most important thing about compute shaders is that it allows for more efficient communication from CPU to GPU side and vice-versa. That basically means you can send arbitrary data to the GPU, let it do some work and then read it's output and then do whatever you want with it.
You can now see that how different compute shaders are when compared …

Visual Upgrade - Unity Asset Store [ August, 2018 ]

Visual Overhaul - Assets That Turn Mediocre Into Drool Worthy *Note: These assets are not arranged in any way, no comparison is done. They are just really cool assets that will help make your game look at least a bit better.😁 .

8.Polygon Arsenal- Polygon Arsenal is a bundle of 550 (approx) particle effects. Works best with bloom enabled in low-poly and stylized environments.
The effects are sorted into 3 categories: Combat, Environment and Interactive.
7.Sleek Render: Mobile Post Processing Stack - Ultra Fast Bloom, Color Grading and Vignette post processing effects created specifically for mobile devices.
Bloom uses two-pass downscaled blur.
Color grading doesn't use any LUTs (color overlay) and thus really fast on OpenGL ES 2.0 grade hardware.
Vignette is calculated in a downscaled pass and thus really fast to calculate. It's also runtime tweakable without additional overhead..
6.Car Paint - Pro - Car Paint Pro will help you to simulate next level photo-realistic visua…

Productivity Upgrade - Unity Asset Store [ August, 2018 ]

Productivity Boost - Assets That Help Make A Better Game In Less Time *Note: These assets are not arranged in any way, no comparison is done. They are just really cool assets that will help make your entire workflow more streamlined as well as deliver output faster.😁.
Well a new month has arrived and it's time to see more of those cool assets on the Unity asset store.

8.Very Simple Combo Pack - Includes a lot of things bundled together : Very Simple Ads, Very Simple Rate, Very Simple Share, Very Simple Leaderboard & Very Simple GIF  project.
This asset drastically reduces the time required for setting up the basic mobile game features.
7.Fixed Camera Angle - The camera will either stay in a fixed location while the character roams about, or it will follow the player's movement only from a fixed angle and distance. Examples of games using fixed camera angle are Resident Evil, Dino Crisis, Until Down. Easy to use by a simple inspector which is categories tabs and order…

Introduction To Bitwise Operations

Introduction To Bitwise Operations Bitwise operators are used to change individual bits in an operand. The main use of bitwise operations are to perform calculations at a more optimized level as these operations are directly supported by the processor. & (bitwise AND) Takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.
eg: 1010 & 0010 = 0010| (bitwise OR) Takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 any of the two bits is 1.
eg: 1001 | 0010 = 1011 ^ (bitwise XOR) Takes two numbers as operands and does XOR on every bit of two numbers. The result of XOR is 1 if the two bits are different.
eg: 0110 ^ 1000 = 1110<< (left shift) Takes two numbers, left shifts the bits of the first operand, the second operand decides the number of places to shift.
eg: 0101 << 1 = 1010>> (right shift) Takes two numbers, right shifts the bits of the first operand, the second…

Creating Android Plugins For Unity

Creating Android Plugins For Unity When creating a game / app with Unity which targets a specific platform like Android or iOS it would really handy if you could access some  platform specific features such as native pop-up windows ( modal dialogs ), battery status, vibration access, location access, file system access etc.. 
*Note : The following tutorial assumes that you know a bit about Android development and java in general. Even if you don't know android development I hope this tutorial shows you how easy and rewarding it is to make your own Android plugins. Before we start you should make a folder called 'Plugins' inside the 'Assets' directory and inside that create a 'Android' folder. This is where all our .aar / .jar files go which is basically a .dll file for windows folks.
We will be making a plugin that displays a Toast dialog which consists of a string we pass
from Unity and also a method that performs some math operation and returns the output…