Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
2
Question by ByteSheep · Apr 12, 2013 at 04:52 PM · shadercolortoonflat

Custom Toon shader

alt text

Hi, having a bit of trouble getting the desired shader effect within unity.

This is a model made in Maya using a toon shader.

As you can see on the image the shader looks flat and maybe even slightly 2d (it's meant to).
This is mainly because the colours are being 'crushed', by which I mean the shadows have one colour and the lit up parts of the arm only have one single colour too - there isn't really a gradient that gives the 3d shading effect (such as for the curve of the arm).

This is what the arm looks like in unity:

alt text

Has anyone got experience working with unitys shaders and can tell me how to go about creating a custom shader that could have this effect (also is it worth the effort)?

I am interested in learning to script custom shaders, but haven't had the chance to start learning yet.
To actually ask a question here - Would this be a (fairly) simple shader to code or is it one of those impossibly difficult things to do?
I would mainly like an opinion on the complexity of such a shader. Cheers!

screen shot 2013-04-12 at 16.12.33.png (14.4 kB)
screen shot 2013-04-12 at 17.20.32.png (34.8 kB)
Comment
Add comment · Show 4
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 Philipp · Apr 12, 2013 at 04:58 PM 1
Share

Very simple. Sorry, I don't have the time to write it for you right now, but if you're willing to learn, I think this series of YouTube tutorials should get you there within a couple of hours (start at part 1, and go until you're at the BRDF tutorial): surface shader tutorials

avatar image Lockstep · Apr 12, 2013 at 05:00 PM 1
Share

There are toon shaders on the wiki. $$anonymous$$aybe one suits for you. I think there is even a standart package for toon shaders since 4.0 available. If you want to learn writing a shader, then there is also a tutorial on the wiki and the manual. Good luck.

avatar image whydoidoit · Apr 12, 2013 at 05:02 PM 1
Share

You could check out this: http://unitygems.com/noobs-guide-shaders-4-toon-shading-basic/

There is also a faster non-surface shader version in that series.

avatar image ByteSheep · Apr 12, 2013 at 05:08 PM 0
Share

Thanks for the quick replies!
Some great resources and am happy to hear that I will most likely be able to code it myself.
Now the problem of which answer to accept ;)

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

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

looking for a flat shader (no info) with just a color option 2 Answers

Object is rendered white(saturated) 1 Answer

Coloured specularity mapping? 1 Answer

How to Get Nice Thick Toon-Like Outlines On Non-Smooth Geometry? 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