• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by UltimateWalrus · Jul 23, 2010 at 06:18 AM · shadergraphicscolor

Color dithering/quantizing

For stylistic purposes, I'd like to have a game engine that can render landscapes using a dithering effect, similar to the following game screenshot:

http://img340.imageshack.us/img340/4329/lba13.png

I figured the easiest way to do this would be to change the game to 256-color mode... but I can't figure out how to do this.

Of course, the best-case scenario would be if I could choose between having a dithering effect on a model (similar to the dunes in the screenshot) or a quantizing effect (like the car in the screenshot).

Is there a way to accomplish this type of low-color effect in Unity? Is it possible that I could write a shader to do this? (I have no experience with writing shaders but I'm willing to learn)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image juicyMeatBall · Aug 22, 2013 at 09:36 AM 0
Share

you can download dithering shader from here http://ovpavlov.blogspot.ru/2013/02/8-bit-dithering.html

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Eric5h5 · Jul 23, 2010 at 06:28 AM

8-bit screen modes are increasingly unavailable in modern computers, so that wouldn't be desirable even if it was possible. Some kind of full-screen image effect would be one way to do it (requires Unity Pro). See here for someone's start on a posterization shader.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image UltimateWalrus · Jul 25, 2010 at 10:46 PM 0
Share

I couldn't find any image effects that would do the trick. Well, I don't have Unity Pro anyway.

So, do you think making a shader would be my best bet? I'm just wondering if it's even possible to make a dithering shader, before I invest the time to delve into the world of shader program$$anonymous$$g.

avatar image Eric5h5 · Jul 26, 2010 at 12:21 AM 0
Share

@UltimateWalrus: Well, you would make an image effect that did this; I wouldn't expect one already exists. $$anonymous$$ost effects are possible with shaders, and a google search on "dithering shader" shows some discussions about that.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

How can you make 3D objects look like the objects in Color Bump 3D 0 Answers

Material doesn't have a color property '_Color' 4 Answers

Does tex2D give innacurate values? Too dark + weird artefacts 0 Answers

How many different levels of r g b and a can unity create in a Color? 2 Answers

Need help with using world position in shader 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges