- Home /
Problem is not reproducible or outdated
How to achieve a Black & White effect.
Hello there. I want to achieve a high-contrast Sin City-like effect. The most straightforward way to achieve it would be to have the global illumination set to completely black, and have spotlights with a high enough intensity. The problem is that the maximum spotlight intensity is too low for such an effect, unless the lit objects are too close. Is there any image effect-based method of achieving high contrast levels?
I think you could get the effect you're looking for by using this shader: http://docs.unity3d.com/Documentation/Components/script-GrayscaleEffect.html
With a white to black color ramp applied. However, ins$$anonymous$$d of a gradient, you'd use solid sections of white to black that abruptly change.
Finally, this is Pro only. I don't think you could get a Sin City-like effect without the Pro version as I see no way it could be done without shaders. Even if you used monochromatic textures, they'll still have soft falloffs.
Unfortunately, this does not seem to work all that well.
The overall quality of the effect seems to be fairly low. There are also these weird gray areas whose positions seem to change with movement. $$anonymous$$y texture ramp is purely black and white as well. Changing the ramp offset seems to fix this but it also makes the effect look somewhat weird, as some brightly lit areas appear black while other areas that are just as bright but have a slightly different colour appear white.
Thanks for posting the screenshot. It's curious that you're getting gray areas with the shader, which tell me that I don't quite understand how the shader works. As such, I just changed this to a comment rather than an answer. I'll be watching the question as I'm not also curious as to what the right answer might be. (Custom shader no doubt, but the details will be interesting.)
I am quite sure i already have done so. Edit: After refreshing the page, i found out that the image failed to display for some reason, fixed it. Although the concept is simple enough to understand without an image, i want a pure black and white effect, without gray or anything in between.