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 Mischa · Jul 27, 2012 at 02:53 PM · shaderbeastlightmapstooncellshading

How to approach Cellshading and Lightmaps?

My goal is to create a game with a cartoonish, hand drawn look. So far I use unity's edge detect normals image effect to get some simple outlines. For cellshading I use the standard Toon Basic Lighted shader.

The problem I have is the shading of my static geometry.

I'd like to have some nice light and shaddow effects so I'd prefer using baked lightmaps. But as soon as I use lightmaps on the lighted toon shader I don't have any ramped lightning anymore, cause beast lightmapping doesn't do any ramped lightning.

How would I approach this problem? Would any changes in the toonshader do it? Or can I change the way the lightmaps are baked? Or is it possible to edit the lightmaps after baking and apply some ramp filter to them?

I'm thankful vor any suggestion that can lead me to the right solution :-)

Comment
Add comment
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

1 Reply

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

Answer by ScroodgeM · Jul 27, 2012 at 05:30 PM

the simpliest way IMHO is to edit lightmaps directly. just search for .exr files in Assets folder (usually in folder named same as baked scene). Photoshop can open these files. files contains power of shadow - so you just need to create ramp and apply it based on lightmap power. (greyscale to gradient in Photoshop: Image -> Adjustements -> Gradient Map)

shaders improvements will cost some more GPU time, so i think if solution above is OK, choose it

Comment
Add comment · Show 3 · 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 Mischa · Jul 27, 2012 at 06:19 PM 0
Share

Thanks for the answer! I'm more programmer than artist. Any ideas on how to achieve ramped lighting in photoshop?

avatar image ScroodgeM · Jul 27, 2012 at 06:24 PM 0
Share

me too, but found it in 5 $$anonymous$$utes. see answer.

avatar image Mischa · Jul 27, 2012 at 07:55 PM 0
Share

(facepalm).. thanks mate xD

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

6 People are following this question.

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

Related Questions

Cell / toon shader on LWRP 2D Renderer 0 Answers

Questions about the Toon/Basic Outline Shader 0 Answers

Single tone shadows in forward rendering 0 Answers

Silhouette Toon Shader 0 Answers

Custom Toon shader 0 Answers


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