How Does Unity Create Normal Maps from Grayscale?
The question is all in the title, whenever you import textures into Unity and set the texture type to normal map, you will be given the option to create a normal map from grayscale. Anybody have any...
View ArticleHow to stop grayscale effect for certain objects?
There's a moment in my game where the camera has a grayscale effect applied (the unity pro effect). However I don't want certain objects to be affected by it. The only solution I have right now is...
View ArticleGrayscale background over coloured circular area
Hi, I want to achieve this but have no clue on how to do it. Help is greatly appreciated: ![alt text][1] [1]: /storage/temp/33774-black_white.png Basically, the game is in colour, but sometimes I want...
View ArticleBlack and white effect on mobile?
Hi. I attached the GrayscaleEffect.cs image effect to my camera and it works perfectly in the Editor. However, when I builded to my devices the framerate went down to less than 5 FPS when I activated...
View ArticleSetMaterial don't works with canvasRenderer
Hello. I want to add grayscale filter to Image object in Unity UI. I found this [grayscale shader][1]. In my code I have created material and tried to use it like this:>...
View Articletransparent object: everything behind it appears in grayscale
i would like a sort of transparent glass window that not just adds a color. It should have the effect that everything behind it appears in grayscale. But not by actually changing the shaders of the...
View ArticleGPU Memory : Impact of Grayscale Textures
My specific cuestion : ¿Will 4 Grayscale textures (let's say Alpha8) use the same amount of Graphic Memory than a single ARGB texture (both of same sizes)? In other words, ¿Does having an "Alpha 8"...
View ArticleExport normal map from unity?
In unity I can create a normal map out of a black and white image (By changing the type to normal map and select create from grayscale) Im wondering if there is a way to export the normal map like it...
View ArticleGrayscale Green and Blue but not Red
Im trying to make a game looking like Sin City style, where all tones are in grayscale except the red tone. Im using the Grayscale from Unity 5.2 in the camera and trying to edit it, but no success =/...
View ArticleTextureType grayscale
I want to store a 2 array of floats, just like a heightmap in a texture, what is the texture type im looking for? And how to properly set the texture pixels value? Texture2D texture = new Texture2D(3,...
View Articlemake all grayscale but some colors
Hi everyone, I have a question.. If it's possible to make something like having the whole scene grayscale, but keep some colors. Not like _red_ or _green_ or _blue_ only.. but something like _yellow_...
View ArticleHow to load an RGB image from the resource folder into an int/float[]...
what I've been able to do so far is to read an image as a texture2D using Resources.loadAll("") and then iterate through the image using nested for loop and get each individual pixel stored into a...
View ArticleGrayscale screen based on health
I want to adjust the amount of grayscale applied on the camera based on the player's health. For example, when the player is fully alive, the screen is like normal. When the player is dead, the whole...
View ArticleHow to Fade into black and white in a particular scene?
So I have a scene and I want to make the scene black and white (fade into black and white) whenever I Pause my game, and I have got NO FRIKIN Idea how to do it because there is no option to control the...
View ArticleHow to generate 12 bit grayscale image
Hello, Can anyone guide me on how to generate 12 bit grayscale image? All I could see in Texture2D format is 8bits.
View ArticleHow can I change texture alpha with another texture by script?
I have these two images. One simple texture and one gray scale texture. The end result is a texture with alpha. I'm new to texture manipulation. Has somebody some tips or example codes? I don't want to...
View ArticleHow to add a gray scale to a buttons color?
I am trying to create a gray scale for 6 different buttons color using c#. The gray scales will be 90% to 40% making each color lighter than the original color of each button. ---------- Button1: 90%,...
View ArticleHow to make this effect? [Image included]
Hello everyone, I am trying to make this effect for about 3 hours, and I am so frustrated. I want to make an object at the background colored and an object in the front grayscale. (Like putting a...
View ArticleHow to save a RenderTexture as a 1-channel 8-bit grayscale PNG?
Hello, I want to save a render texture into a grayscale 8 bit PNG image that only uses 1 color channel. I converted the render texture into a Texture2D and have experimented with TextureFormat.R8 and...
View ArticleSprite Grayscale Shader Filter Overlap
Hello there, I am tired of searching around and fideling with shaders, to no avail. I really need help, I'm trying to create a shader that makes a given sprite turn all others behind it (on a lower...
View Article